Advertisement
Ostu

Untitled

Dec 4th, 2020
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.40 KB | None | 0 0
  1. % model obiektu
  2. A1=4;
  3. A2=5;
  4. g=9.81;
  5. Aw1=0.5;
  6. Aw=0.5;
  7. h1max=6;
  8. h2max=6;
  9. a1=Aw1*sqrt(2.*g).*h1max.^-0.5;
  10. a2=Aw*sqrt(2.*g).*h2max.^-0.5;
  11. A = [-a1/A1, 0; a1/A2, -a2/A2];
  12. B = [1/A1; 0];
  13. C = [0 1];
  14. D = 0;
  15. sys=ss(A,B,C,D);
  16. figure(1)
  17. step(sys)
  18. % model kupfmullera
  19. tau=0.3;
  20. T=15.2-tau;
  21. k=1.11;
  22. G1=tf([k],[T 1]);
  23. figure(2)
  24. step(G1, 'r')
  25. % zestawienie
  26. figure(3)
  27. step(sys)
  28. hold on
  29. step(G1, 'r')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement