Ostu

Untitled

Dec 4th, 2020
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.44 KB | None | 0 0
  1. % obiekt
  2. A1=4;
  3. A2=5;
  4. g=9.81;
  5. Aw1=0.5;
  6. Aw2=0.5;
  7. hdiffmax=2;
  8. hmax2=6;
  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. Cz3 = [0 1];
  14. Dz3 = 0;
  15. Z3=ss(Az3,Bz3,Cz3,Dz3);
  16. figure(1)
  17. step(Z3)
  18. % model kupfmullera
  19. tau3=0.7;
  20. T3=15.9-tau3;
  21. k3=1.1;
  22. G3=tf([k3],[T3 1]);
  23. figure(2)
  24. step(G3, 'r')
  25. % zestawienie
  26. figure(3)
  27. step(Z3)
  28. hold on
  29. step(G3, 'r')
Add Comment
Please, Sign In to add comment