MATLAB Answers


purpose of applying the window

Asked by Abdulkareem
on 13 Dec 2012

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



No products are associated with this question.

1 Answer

Answer by Image Analyst
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

on 14 Dec 2012


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

Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!