FFT of a function
Show older comments
I would like to do a FFT of x, x=cos(2*pi*f*t)
How can i replace X(W) = FFT(X) --> X(W/a) = ?
Thanks.
Answers (1)
themaze
on 11 Apr 2013
0 votes
Here is a nice way to accomplish that
I am assuming that w = 2*pi*f. Also you need to define your t
Xw = @(w, t) fft(cos(w*t));
to call the function, just use
Xw(w, t) or Xw(W/a, t)
Categories
Find more on Fourier Analysis and Filtering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!