Signal Processing Toolbox    
hamming

Compute a Hamming window.

Syntax

Description

w = hamming(n) returns an 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 = 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.

Examples

See Also
bartlett
Compute a Bartlett window.
blackman
Compute a Blackman window.
boxcar
Compute a rectangular window.
chebwin
Compute a Chebyshev window.
hann
Compute a Hann window.
kaiser
Compute a Kaiser window.
triang
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