SHARE
TWEET

henhen

a guest Oct 23rd, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. G = tf([20],[1 5 6 0])
  2. figure(1)
  3. subplot(2,1,1)
  4. bode(G)
  5. subplot(2,1,2)
  6. nyquist(G)
  7.  
  8.  
  9. K=0.85;
  10. Gf = feedback(G,K)
  11. % figure(2)
  12. % subplot(2,1,1)
  13. % nyquist(Gf)
  14. % subplot(2,1,2)
  15. % bode(Gf)
  16.  
  17. K_margin = db2mag(-6.01)
  18. G_margin = Gf*K_margin
  19. G_1 = Gf*0.6
  20. G_2 = Gf*0.4
  21. figure(3)
  22. subplot(2,1,1)
  23. nyquist(G_1)
  24. subplot(2,1,2)
  25. nyquist(G_2)
  26. % G1_fb = feedback(G,1)
  27. % Gm_fb = feedback(G,K_margin)
  28. % G2_fb = feedback(G,0.5)
  29. % subplot(3,1,3)
  30. % step(G2_fb)
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37. % G1 = zpk([20],[1 5 6 0])
  38. % figure(3)
  39. % nyquist(G1)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top