This is a simple function that plots the result of the FFT transform, but replacing the arbitrary x-axis with a true freqency axis (using the input sampling frequency). It plots just one side of the symmetrical FFT vector.
You can also use the function to extract the frequency axis vector without creating the plot.
Edden M. Gerber (2022). plot FFT (https://www.mathworks.com/matlabcentral/fileexchange/71755-plot-fft), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!