How does the command: real(ifft(​fftshift(Y​))*N) operate?

2 vues (au cours des 30 derniers jours)
Tarek Hajj Shehadi
Tarek Hajj Shehadi le 19 Avr 2021
Hello, I am interested in knowing how this form of the inverse FFT command which is
real(ifft(fftshift(Y))*N)
works and its complexity for a vector Y of N sample points, because I have seen some basic ifft commands as seen here but this one seems to involve ifft and fft together.

Réponse acceptée

Matt J
Matt J le 20 Avr 2021
Modifié(e) : Matt J le 20 Avr 2021
All of those oeprations are O(N) except for the IFFT which is O(Nlog(N)). So the chain of operations is O(Nlog(N)) overall.It would be slightly more efficient to re-implement it as,
N*real(ifft(fftshift(Y)))
since then the multiplication with N only needs to operate on real numbers.
  2 commentaires
Matt J
Matt J le 20 Avr 2021
but this one seems to involve ifft and fft together.
No, it doesn't. But the FFT is also O(log(N)), so including an FFT step wouldn't increase the complexity either.
Tarek Hajj Shehadi
Tarek Hajj Shehadi le 20 Avr 2021
Thank you for the clarification, all is understood.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by