Hann (Hanning) window
L-point symmetric Hann window in the column
L must be a positive integer. The coefficients of a Hann
window are computed from the following equation.
The window length is .
L-point Hann window using the window sampling
'sflag', which can be either
'periodic' flag is useful for DFT/FFT
purposes, such as in spectral analysis. The DFT/FFT contains an
implicit periodic extension and the periodic flag enables a signal
windowed with a periodic window to have perfect periodic extension.
'periodic' is specified,
L+1 window and returns the first
When using windows for filter design, the
should be used.
If you specify a one-point window (
Create a 64-point Hann window. Display the result using
L = 64; wvtool(hann(L))
 Oppenheim, Alan V., Ronald W. Schafer, and John R. Buck. Discrete-Time Signal Processing. Upper Saddle River, NJ: Prentice Hall, 1999, p. 468.
Usage notes and limitations:
All inputs must be constant. Expressions or variables are allowed if their values do not change.