| Signal Processing Toolbox | Search  Help Desk |
| hamming | See Also |
Syntax
w = hamming(n) w = hamming(n,sflag)
Description
w = hamming(n)
returns an n-point symmetrically sampled Hamming window in the column vector w. n should be a nonnegative integer. The coefficients of a Hamming window are
w = hamming(n,sflag)
returns an 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.
Diagnostics
An error message is displayed when incorrect arguments are used:Order cannot be less than zero. Sampling must be either 'symmetric' or 'periodic'.A warning message is displayed for noninteger
n:
Warning: Rounding order to nearest integer.
See Also
bartlett |
Bartlett window. |
blackman |
Blackman window. |
boxcar |
Rectangular window. |
chebwin |
Chebyshev window. |
hanning |
Hanning window. |
kaiser |
Kaiser window. |
triang |
Triangular window. |
References
[1] Oppenheim, A.V., and R.W. Schafer, Discrete-Time Signal Processing. Englewood Cliffs, NJ: Prentice-Hall, 1989.