Signal Processing Toolbox Previous page   Next Page
hann

Hann (Hanning) window

Syntax

Description

w = hann(n) returns an 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 = hann(n,'sflag') returns an 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

Create a 64-point Hann window and display the result in WVTool:

See Also

blackman, flattopwin, hamming, window, wintool, wvtool

References

[1] Oppenheim, A.V., and R.W. Schafer, Discrete-Time Signal Processing, Prentice-Hall, 1989, pp. 447-448.


Previous page  hamming hilbert Next page

© 1994-2005 The MathWorks, Inc.