what is NFFT and where it is used in matlab code

124 views (last 30 days)
NFFT

Answers (2)

Star Strider
Star Strider on 10 Feb 2017
Another explanation for ‘NFFT’ in the documentation for the fft (link) function is that it is the length of the signal you want to calculate the Fourier transform of. (It zero-pads the time-domain vector before calculating the transform.) Because of the nature of the fft algorithm, this is usually 2^n, where ‘n’ is any integer, because it makes the algorithm more efficient. It also increases the frequency resolution of the resulting fft, generally considered to be preferable.
Using the ‘NFFT’ argument is especially helpful if you are comparing the fft of different signals of slightly different lengths and want all of them to have the same frequency resolution. Setting ‘NFFT’ to be the same for all the signals allows you to compare them directly at each frequency.
  3 Comments
Cutie
Cutie on 21 Jun 2021
But, is NFFT th length or window size of the FFT? I need clarification on this please.
Walter Roberson
Walter Roberson on 21 Jun 2021
Transform length, specified as [] or a nonnegative integer scalar. Specifying a positive integer scalar for the transform length can increase the performance of fft. The length is typically specified as a power of 2 or a value that can be factored into a product of small prime numbers. If n is less than the length of the signal, then fft ignores the remaining signal values past the nth entry and returns the truncated result. If n is 0, then fft returns an empty matrix.

Sign in to comment.


Walter Roberson
Walter Roberson on 10 Feb 2017
NFFT is one of the abbreviations used for Non-Uniform Fast Fourier Transform. Mathworks does not supply code for it. You can find one implementation at https://www.mathworks.com/matlabcentral/fileexchange/25135-nufft--nfft--usfft

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!