Advertisement
Ostu

Untitled

Dec 4th, 2020
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.28 KB | None | 0 0
  1. A1=4;
  2. A2=5;
  3. g=9.81;
  4. Aw1=0.5;
  5. Aw2=0.5;
  6. hdiffmax=2;
  7. hmax2=6;
  8. a1z3=Aw1*sqrt(2.*g).*hdiffmax.^-0.5;
  9. a2z3=Aw2*sqrt(2.*g).*hmax2.^-0.5;
  10. Az3 = [-a1z3/A1, a1z3/A1; a1z3/A2, (-a1z3/A2-a2z3/A2)];
  11. Bz3 = [1/A1; 0];
  12. Cz3 = [0 1];
  13. Dz3 = 0;
  14. Z3=ss(Az3,Bz3,Cz3,Dz3);
  15. figure(1)
  16. step(Z3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement