How to use frequency as input for ifft

17 visualizaciones (últimos 30 días)
Yue Wu
Yue Wu el 12 de Sept. de 2018
Comentada: dpb el 13 de Sept. de 2018
I find that I cannot input frequency as input for the funciton ifft. However, my frequency range is really large and my Y vector are corresponding to specific frequencies. How can I also include frequency as a input. Thanks
  5 comentarios
Yue Wu
Yue Wu el 13 de Sept. de 2018
thank you. that's great explanation
dpb
dpb el 13 de Sept. de 2018
Glad to (try to :) ) help...

Iniciar sesión para comentar.

Respuesta aceptada

Matt J
Matt J el 12 de Sept. de 2018
Editada: Matt J el 12 de Sept. de 2018
If you don't have uniformly-spaced frequency sampling, then the IDFT (and in particular the IFFT) doesn't make sense. Its theory is predicated on uniform sampling.
You could always use the integral() command to implement a discretized inverse Fourier transform integral. Alternatively, you could use interp1 to resample the spectrum at uniformly spaced sample locations - then the IDFT/IFFT could be applied.
  5 comentarios
dpb
dpb el 13 de Sept. de 2018
The IFFT simply reverses the FFT; if you have 10k (complex) frequency components, the IFFT will produce 10k (presumably real) points in the time domain that will precisely reproduce the input that would have created the transform.
The sample rate is, as noted previously, simply an external bookkeeping arrangement to apply correct units for interpretation.
You can, of course, interpolate or decimate by using the optional second argument.
Yue Wu
Yue Wu el 13 de Sept. de 2018
Thank you

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by