Generates a vector of a Chebyshev window of a given length. |
||
Syntax |
W = ChebyWin(Length, R, Type) |
|
Arguments |
Name |
Description |
|
Length |
A positive integer specifying the length of the window. |
|
R |
The difference between the sidelobe and the mainlobe magnitudes of the Fourier transform of the window. The sidelobe is attenuated by this value from the mainlobe magnitude. Must be a negative scalar. |
|
Type |
A string. ‘periodic’ or ’symmetric’ (default). See Comments. |
Output |
Name |
Description |
|
W |
Vector containing the window of specified length. |
Example |
A Chebyshev window of length 32 and a side lobe attenuation of 20 dB from the main lobe: |
|
Syntax |
||
W = ChebyWin(32,-20) |
||
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: |