Advertisement
Ostu

Untitled

Dec 2nd, 2020
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.33 KB | None | 0 0
  1. %% Zbiornik 5
  2. A1=4
  3. A2=5
  4. g=9.81
  5. Aw1=2
  6. Aw2=2
  7. hmax1=10
  8. hmax2=10
  9. a1=Aw1*sqrt(2.*g).*h1max.^-0.5
  10. a2=Aw2*sqrt(2.*g).*h2max.^-0.5
  11. Az3 = [-a1/A1, 0; a1/A2, -a2/A2]
  12. Bz3 = [1/A1; 0];
  13. Cz3 = [0 1]
  14. Dz3 = 0
  15. Z5=ss(Az3,Bz3,Cz3,Dz3)
  16. figure(1)
  17. step(Z5)
  18. figure(2)
  19. impulse(Z5)
  20. figure(3)
  21. nyquist(Z5)
  22. figure(4)
  23. bode(Z5)
  24. figure(5)
  25. pzmap(Z5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement