Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

purpose of applying the window

Asked by Abdulkareem

Abdulkareem (view profile)

on 13 Dec 2012

hi i need to know the purpose of applying any window ( hamming,hanning) to sound signal



Abdulkareem (view profile)


No products are associated with this question.

1 Answer

Answer by Image Analyst

Image Analyst (view profile)

on 13 Dec 2012

I guess so the sound will fade in and fade out so it's a more gentle beginning and end to the signal. Without windowing it's possible the sound could start abruptly and very loudly, or suddenly stop which could sounds weird. That's all in the time domain.

It could also reduce spurious high frequencies in the spectral domain which can happen if the left side and right side of the signal don't match up because the FFT assumes a periodic signal. Mismatch at right and left edge of the signal will give a sharp edge in the periodic extension of the signal which would create spurious high frequencies.

1 Comment


bym (view profile)

on 14 Dec 2012


aka spectral leakage. why don't you code up an example for yourself and see the differences

Image Analyst

Image Analyst (view profile)

Contact us