FFT of a function

3 visualizaciones (últimos 30 días)
ong
ong el 11 de Abr. de 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.

Respuestas (1)

themaze
themaze el 11 de Abr. de 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 comentario
ong
ong el 11 de Abr. de 2013
Hi, thanks for the respond. What does the @ component do?

Iniciar sesión para comentar.

Categorías

Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by