Advertisement
stiansjogren

asd

Oct 7th, 2014
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. function DFT_IFT(x,h, length_of_set)
  2.  
  3. N = floor(length_of_set);
  4. X = fft(x, N); H = fft(h, N);
  5. Y = X .* H;
  6. n = 0:N-1;
  7. y = ifft(Y, N);
  8. figure
  9. stem(n,y)
  10. title ([' DFT/IDFT with length ' num2str(N) ])
  11. axis ([0 36 0 7])
  12. xlabel 'n'
  13. ylabel 'y[n]'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement