Type of Window for FFT

179 views (last 30 days)
Anis Fatini Abdul Aziz
Anis Fatini Abdul Aziz on 14 May 2021
Answered: Kiran Felix Robert on 25 Jun 2021
Hi everyone,
Does anyone know what type of window function, MATLAB fft function used to apply FFT onto signal (specifically sinewave signal)? There are several type right? Like the Hanning, Flat Top, Uniform? Please assist in explaining it to me which is it and why. Thank you in advance.
Regards,
Anis
  1 Comment
Mathieu NOE
Mathieu NOE on 15 May 2021
Hello
if your data frequencies are not integer factor of your sampling frequency , you cannot use a rectangular (or alike) windows; it must be a window that has zero amplitude at both ends and max amplitude in the center, like a gaussian peak; a Hanning or Hamming window is the typical choice then
for more info - about what is the "best" window it all depends of what your aim is :
There is absolute no way to chose a "best" window function without a rigorous statement of your criterion-of-goodness. This problem was recognized in the 1970s as an issue in the processing of scientific data where the observer could introduce bias into the research results merely by selecting the appropriate windowing function. The unbiased choice is the rectangular window but it produces high sidelobes in the spectrum.
The answer to the problem then, as now, is the Maximum Entropy Method (MEM) by John Parker Burg. If you must use the FFT and a window function, you have many to choose from: (http://en.wikipedia.org/wiki/Window_function) Since they all introduce observer bias, you just pick the one that gives you an output you like. The truth of the matter is, you can get any spectrual result you desire by creating the appropriate window function.
In conclusion, there is no rigorous way except in the sense that you can chose to accept the criterion-of-goodness associated with a particular window.

Sign in to comment.

Answers (1)

Kiran Felix Robert
Kiran Felix Robert on 25 Jun 2021
Hi,
Please refer the fft documentation

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!