diff options
Diffstat (limited to 'lab5/RTDSP/Matlab/elliptical.m')
-rw-r--r-- | lab5/RTDSP/Matlab/elliptical.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lab5/RTDSP/Matlab/elliptical.m b/lab5/RTDSP/Matlab/elliptical.m new file mode 100644 index 0000000..619944e --- /dev/null +++ b/lab5/RTDSP/Matlab/elliptical.m @@ -0,0 +1,10 @@ +function [b,a] = elliptical (Fs) + +order = 4; % Order of the bandpass filter +startband = 270*2/Fs; % Normalised startband frequency +stopband = 450*2/Fs; % Normalised stopband frequency +ripple = 0.3; % The passband ripple (in dB) +stopband_atten = 20; % The stopband attenuation (in dB) + +% Call the eliptical filter function +[b,a] = ellip(order/2,ripple,stopband_atten,[startband, stopband]); |