chebwin
Dolph-Chebyshev window.
Syntax
w = chebwin(n,atten)
w = chebwin(n,atten,type)
Inputs
- n
- Length of the chebwin window.
- atten
- The sidelobe attenuation of the Fourier transform in decibels.
- type
- Type of the window.
Outputs
- w
- Window coefficients.
Examples
Symmetric chebwin example:
chebwin(6,60,'symmetric')
w = [Matrix] 6 x 1
0.13265
0.54771
1.00000
1.00000
0.54771
0.13265
Periodic chebwin
example:
chebwin(5,60,'periodic')
w = [Matrix] 5 x 1
0.13265
0.54771
1.00000
1.00000
0.54771
Comments
The window type depends on the application. If the window is used to preprocess data for an FFT then the type should be 'periodic.' If the window is used to design an FIR filter then the type should be 'symmetric.' The difference is that the periodic window omits the right endpoint so that consecutively positioned windows are not duplicating the right endpoint of the 1st window at the left endpoint of the 2nd window. The two endpoints of the symmetric window have equal values.