Nitin400

Invers FT

Aug 3rd, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. close all
  2. clear all
  3. w=-10:0.1:10
  4. t1=-10:0.1:10
  5. x=1./(1+w.^2)
  6. subplot(1,2,1)
  7. plot(w,x)
  8. m=1
  9. for t=-10:0.1:10
  10.     i=1
  11.     sum=0
  12.     for w=-10:0.1:10
  13.         dw=0.1
  14.         sum=1/(2*pi)*(sum+((x(i).*(exp(j*w*t).*dw))))
  15.         i=i+1
  16.     end
  17.         X(m)=sum
  18.         m=m+1
  19. end
  20. y1=abs(X)
  21. t=-10:0.1:10
  22. subplot(1,2,2)
  23. plot(t1
Add Comment
Please, Sign In to add comment