Why use fftshift(fft(fftshi​ft(x))) in Matlab instead of fft(x)?

Version 1.0.0.0 (102 KB) by Kan Wu
Explain why we use fftshift(fft(fftshift(x))) in Matlab instead of fft(x)
5.7K Downloads
Updated 2 Oct 2009

View License

Explain why we use fftshift(fft(fftshift(x))) in Matlab instead of fft(x). An example is given. The example and Matlab codes are partially copied from Daniele Disco ‘s work in "A guide to the Fast Fourier Transform, 2nd Edition".

Cite As

Kan Wu (2024). Why use fftshift(fft(fftshift(x))) in Matlab instead of fft(x)? (https://www.mathworks.com/matlabcentral/fileexchange/25473-why-use-fftshift-fft-fftshift-x-in-matlab-instead-of-fft-x), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: A Guide to the FFT-2nd Edition Plus

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0