Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.51 KB | None | 0 0
  1. %p3-controle
  2.  
  3. %% q1:
  4. Gs = tf([100 100], [1 110 1000 0])
  5. bode(Gs)
  6. grid
  7.  
  8. %% q2:
  9. GsHs = tf([10^4], [1 70 1000]);
  10. %b
  11. nyquist(GsHs)
  12. %c
  13. N = 0;
  14. P = 0;
  15. Z = P - N
  16.  
  17. %% q3:
  18. %figure q3.png
  19.  
  20. %% q4:
  21. Gc = 10;
  22. G = tf([2], [1 5 4 0]);
  23. GcG = Gc*G;
  24. H = feedback(GcG,1)
  25. step(H)
  26.  
  27. %% p3-2015
  28. %% q1
  29. Gs = 100*tf([1 2], [1 20.2 4])
  30. bode(Gs)
  31. grid
  32.  
  33. %% q2
  34. GsHs = 5*tf([-1 1], [1 7 10])
  35. %b
  36. nyquist(GsHs)
  37.  
  38. bode (GsHs)
  39. %% q3
  40.  
  41. %% q4
  42. Gc = 3/5;
  43. G = tf([1 -5 6], [1 3 2]);
  44. GcG = Gc*G;
  45. H = feedback(GcG,1)
  46. step(H)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement