MATLAB: Chebwin error at end

chebwinMATLAB

The function chebwin in Matlab R2018b has a 1-point step at both ends when using many points.
Is that a bug?
see:
L = 8192;
bw = chebwin(L,100);
plot(bw);

Best Answer

Is that a bug?
It doesn’t seem to be, at least if I understand what you’re referring to.
From the documentation for the chebwin function:
‘An artifact of the equiripple design method used in chebwin is the presence of impulses at the endpoints of the time-domain response. This is due to the constant-level sidelobes in the frequency domain. The magnitude of the impulses are on the order of the size of the spectral sidelobes. If the sidelobes are large, the effect at the endpoints may be significant. For more information on this effect, see [2].’
Related Question