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

2 ビュー (過去 30 日間)
Tarek Hajj Shehadi
Tarek Hajj Shehadi 2021 年 4 月 19 日
コメント済み: Tarek Hajj Shehadi 2021 年 4 月 20 日
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.

採用された回答

Matt J
Matt J 2021 年 4 月 20 日
編集済み: Matt J 2021 年 4 月 20 日
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 件のコメント
Matt J
Matt J 2021 年 4 月 20 日
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 2021 年 4 月 20 日
Thank you for the clarification, all is understood.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by