| Signal Processing Toolbox | ![]() |
Syntax
w=hamming(n) w=hamming(n,'sflag')
Description
w returns an = hamming(n)
n-point symmetric Hamming window in the column vector w. n should be a positive integer. The coefficients of a Hamming window are computed from the following equation.
w returns an = hamming(n,'sflag')
n-point Hamming window using the window sampling specified by 'sflag', which can be either 'periodic' or 'symmetric' (the default). When 'periodic' is specified, hamming computes a length n+1 window and returns the first n points.
Examples
w = hamming(64);
plot(w); title('Hamming Window')
See Also
|
Compute a Bartlett window. |
|
Compute a Blackman window. |
|
Compute a rectangular window. |
|
Compute a Chebyshev window. |
|
Compute a Hann 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.
| grpdelay | hann | ![]() |