Guest User

Untitled

a guest
Jan 24th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. t=0:0.01:10;
  2. y5=10.*sin(t).*exp(-t)-5.*sin(t).*exp(-0.5.*t);
  3. plot(t,y5)
  4. figure
  5. y11=[zeros(1,250) -t(1:250) t(1:251)-2.5 zeros(1,250)];
  6. plot(t,y11)
  7.  
  8.  
  9. s=tf('s')
  10. G1=1/(s+1)
  11. G2=1/(s+2)
  12. G3=2/s
  13. G4=1/(s+2)
  14. G5=zpk([],[1 -i i],-10)
  15. G6=0.5
  16. G7=0.1
  17. G8=-1
  18. G28=parallel(G2, G8)
  19. G12=series(G1,G28)
  20. G9=1
  21. G39=parallel(G3,G9)
  22. G34=series(G39,G4)
  23. G34=minreal(G34)
  24. G10=-1
  25. G1234=G12-G34+G10
  26. G12347=feedback(G1234,G7)
  27. G123457=series(G12347,G5)
  28. GF=feedback(G123457,G6)
  29. M=minreal(GF)
  30. c=zero(M)
  31. p=pole(M)
  32. ge=dcgain(M)
  33.  
  34.  
  35. f=5
  36. syms t s
  37. y45=10*cos(2*pi*f*t+pi/2)*exp(-0.5*t)
  38. figure
  39. ezplot(y45)
  40.  
  41. y85=1-2*exp(-2*t)+exp(5*t)
  42. tfy85=laplace(y85)
  43. pretty(tfy85)
  44.  
  45. y85=(exp(-2*s))/(s^2+5*s+6)
  46. itfy85=ilaplace(y85)
Add Comment
Please, Sign In to add comment