FFT of a function

2 vues (au cours des 30 derniers jours)
ong
ong le 11 Avr 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.

Réponses (1)

themaze
themaze le 11 Avr 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 commentaire
ong
ong le 11 Avr 2013
Hi, thanks for the respond. What does the @ component do?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Fourier Analysis and Filtering dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by