Advertisement
Ostu

Untitled

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