Generates a vector of a Hanning window of a given length. |
||
Syntax |
W = HannWin(Length, Type) |
|
Argument |
Name |
Description |
|
Length |
A positive integer specifying the length of the window. |
|
Type |
A string. ‘periodic’ or ’symmetric’ (default). See Comments. |
Output |
Name |
Description |
|
W |
Vector containing the window of a specified length. |
Example |
A Hanning window of length 32. |
|
|
Syntax |
|
|
W = HannWin(32) |
|
|
Result |
|
|
W is a 32 element vector. |
|
Comments |
When Type = ’symmetric’, the vector is symmetric about its median. This case is appropriate for time domain processing, as when using an FIR filter. When Type = ’periodic’, the vector contains the first Length points of a (Length+1) symmetric vector. This case is appropriate for frequency domain processing, as when using BlockFft. |
|
See Also: |