%% Lowpass Elliptic Transfer Function
% Design a 6th-order lowpass elliptic filter with 5 dB of passband ripple, 40 dB of stopband attenuation, and a passband edge frequency of 300 Hz, which, for data sampled at 1000 Hz, corresponds to 0.6\pi rad/sample. Plot its magnitude and phase responses. Use it to filter a 1000-sample random signal.

[b,a] = ellip(6,5,40,0.6);
freqz(b,a)
dataIn = randn(1000,1);
dataOut = filter(b,a,dataIn);

% Copyright 2015 The MathWorks, Inc.