Advertisement
Ostu

Untitled

Dec 3rd, 2020
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.33 KB | None | 0 0
  1. %% Zbiornik 4
  2. A1=4;
  3. A2=5;
  4. g=9.81;
  5. Aw1=2;
  6. Aw2=2;
  7. hdiffmax=9;
  8. hmax2=10;
  9. a1z4=Aw1*sqrt(2.*g).*hdiffmax.^-0.5;
  10. Az4 = [-a1z4/A1, a1z4/A1; a1z4/A2, -a1z4/A2];
  11. Bz4 = [1/A1; 1/A2];
  12. Cz4 = [0 1];
  13. Dz4 = 0;
  14. Z4=ss(Az4,Bz4,Cz4,Dz4);
  15. figure(1)
  16. step(Z4)
  17. figure(2)
  18. impulse(Z4)
  19. figure(3)
  20. nyquist(Z4)
  21. figure(4)
  22. bode(Z4)
  23. figure(5)
  24. pzmap(Z4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement