| Signal Processing Toolbox | Search  Help Desk |
| blackman | See Also |
Syntax
w = blackman(n) w = blackman(n,sflag)
Description
w = blackman(n)
returns the n-point symmetrically sampled Blackman window in the column vector w. n should be a nonnegative integer. The equation for a Blackman window is
w = blackman(n,sflag)
returns an n-point Blackman window using the window sampling specified by sflag, which can be either 'periodic' or 'symmetric' (the default). When 'periodic' is specified, blackman computes a length n+1 window and returns the first n points.
Algorithm
w = (0.42 - 0.5*cos(2*pi*(0:N-1)/(N-1)) + ... 0.08*cos(4*pi*(0:N-1)/(N-1)))';
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. |
boxcar |
Rectangular window. |
chebwin |
Chebyshev window. |
hamming |
Hamming 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.