Advertisement
SubhamRath

Cse

Nov 16th, 2020 (edited)
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.48 KB | None | 0 0
  1. clc
  2. clear all
  3. num=[1];
  4. den=[1 4 3 0];
  5. sys=tf(num,den)
  6. rlocus(sys)
  7. %Example
  8. num1=[1];
  9. den1=[1 8 19 12];
  10. sys1=tf(num,den1)
  11. rlocus(sys1)
  12. %Example of addition of a simple zero at s=-4
  13. num2=[1 4];
  14. den2=[1 4 3 0];
  15. sys2=tf(num2,den2)
  16. rlocus(sys2)
  17. %Example of addition of a complex zero at s^2=-4
  18. num3=[1 0 4];
  19. den3=[1 4 3 0];
  20. sys3=tf(num3,den3)
  21. rlocus(sys3)
  22. %Example of addition of a complex pole at s^2=-4
  23. num4=[1];
  24. den4=[1 4 7 16 12];
  25. sys4=tf(num4,den4)
  26. rlocus(sys4)
  27.  
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement