Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. % LABORATORIO DE PROCESAMIENTO DIGITAL DE BIOSEÑALES E IMÁGENES
  2. % PRÁCTICA 4
  3. % EXPERIMENTO 2
  4. close all
  5. syms w t
  6. syms F(w)
  7. F(w)=int(exp(-sqrt(-1)*w*t),t,-1,1)
  8. Amp(w)=abs(F(w))
  9. q = subs(Amp,[-6*pi:0.1:6*pi])
  10. figure(1)
  11. plot([-6*pi:0.1:6*pi],q)
  12. title(['Espectro de Amplitud'])
  13. xlabel(['Frecuencia [rad/s]'])
  14. ylabel(['Amplitud'])
  15. grid on
  16. hold on
  17. fase = angle(F(w))
  18. r = subs(fase,[-6*pi:0.1:6*pi])
  19. figure(2)
  20. plot([-6*pi:0.1:6*pi],r,'g')
  21. grid on
  22. title(['Espectro de fase'])
  23. xlabel(['Frecuencia [rad/s]'])
  24. ylabel(['Fase'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement