Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. clear all
  2. close all
  3. clc
  4.  
  5. j = sqrt(-1);
  6. w = logspace(-2,2,1000);
  7. s = j*w;
  8.  
  9. Gs = (exp(-3.*s).*(s.^3+1) ./ (s.^3 + s.^2 + 3.*s)) + (1./ (s+1).^3);
  10.  
  11. A = abs(Gs);
  12. Lm = 20*log10(A);
  13. fi = angle(Gs);
  14.  
  15. figure(1)
  16. plot(Gs)
  17.  
  18. figure(2)
  19. subplot(2,1,1); semilogx(w,Lm);
  20. subplot(2,1,2); semilogx(w,fi);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement