%% Chebyshev Window
% The Chebyshev window minimizes the mainlobe width, given a particular sidelobe height. It is characterized by an equiripple behavior. Its sidelobes all have the same height.
%
% Generate and display a 50-point Chebyshev window with a sidelobe attenuation of 40 dB.

w = chebwin(50,40);
wvtool(w)

%
% As shown in the time-domain plot, the Chebyshev window has large spikes at its outer samples.
% Copyright 2012 The MathWorks, Inc.