Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. logspace(-3,6,91)
  2. s = j*w
  3. Gs = (exp(-3*s).*(s.^3+1)./((s.^3)+(s.^2)+3*s))+1./(s+1).^3;
  4. figure(1)
  5. plot(Gs)
  6.  
  7. lM = 20*log10(abs(Gs));
  8. figure(2);
  9. subplot(2,1,1);
  10. semilogx(w,lM);
  11. grid on
  12.  
  13. G1 = (s.^3+1)./((s.^3)+(s.^2)+3*s)+1./(s+1).^3;
  14. fi = -w*180/pi + angle(G1)*180/pi;
  15. subplot(2,1,2);
  16. semilogx(w,fi);
  17. grid on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement