%% Magnitude Response of Elliptic Filter
% Display the magnitude response of a 6th-order elliptic filter. Specify a passband ripple of 3 dB, a stopband attenuation of 50 dB, a sample rate of 1 kHz, and a normalized passband edge of 300 Hz. Start FVTool from the command line.

[b,a] = ellip(6,3,50,300/500);
fvtool(b,a)

% Copyright 2012 The MathWorks, Inc.