FFT of a function

2 Ansichten (letzte 30 Tage)
ong
ong am 11 Apr. 2013
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.

Antworten (1)

themaze
themaze am 11 Apr. 2013
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)
  1 Kommentar
ong
ong am 11 Apr. 2013
Hi, thanks for the respond. What does the @ component do?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Fourier Analysis and Filtering finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by