Advertisement
Guest User

Bagus

a guest
Oct 16th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. A=[0 1 0;0 0 1;-160 -56 -14]
  2. B=[0;1;-14]
  3. C=[1 0 0]
  4. D=0
  5.  
  6. sys=ss(A,B,C,D)
  7. figure(1);
  8. subplot(2,1,1)
  9. rlocus(sys)
  10. subplot(2,1,2)
  11. step(sys)
  12.  
  13. K1=10
  14. sys1=feedback(sys,K1)
  15. figure(2)
  16. subplot(2,1,1)
  17. rlocus(sys1)
  18. subplot(2,1,2)
  19. step(sys1)
  20.  
  21. K2=30
  22. sys2=feedback(sys,K2)
  23. figure(3)
  24. subplot(2,1,1)
  25. rlocus(sys2)
  26. subplot(2,1,2)
  27. step(sys2)
  28.  
  29. K3=50
  30. sys3=feedback(sys,K3)
  31. figure(4)
  32. subplot(2,1,1)
  33. rlocus(sys3)
  34. subplot(2,1,2)
  35. step(sys3)
  36.  
  37. K4=70
  38. sys4=feedback(sys,K4)
  39. figure(5)
  40. subplot(2,1,1)
  41. rlocus(sys3)
  42. subplot(2,1,2)
  43. step(sys3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement