| Signal Processing Toolbox | ![]() |
Compute a Hann (Hanning) window.
Syntax
w=hann(n) w=hann(n,'sflag')
Description
w returns an = hann(n)
n-point symmetric Hann window in the column vector w. n must be a positive integer. The coefficients of a Hann window are computed from the following equation.
w returns an = hann(n,'sflag')
n-point Hann window using the window sampling specified by 'sflag', which can be either 'periodic' or 'symmetric' (the default). When 'periodic' is specified, hann computes a length n+1 window and returns the first n points.
Examples
w = hann(64);
plot(w); title('Hann Window')
See Also
|
Compute a Bartlett window. |
|
Compute a Blackman window. |
|
Compute a rectangular window. |
|
Compute a Chebyshev window. |
|
Compute a Hamming window. |
|
Compute a Kaiser window. |
|
Compute a triangular window. |
References
[1] Oppenheim, A.V., and R.W. Schafer, Discrete-Time Signal Processing, Prentice-Hall, 1989, pp. 447-448.
| hamming | hilbert | ![]() |