aboutsummaryrefslogtreecommitdiffstats
path: root/lab5/RTDSP/Matlab/elliptical.m
blob: f9e2aeb3c1398ff512e6638a4b808e599ce5a312 (plain)
1
2
3
4
5
6
7
8
9
10
function [b,a] = elliptical (Fs)

order = 4; % Order of the bandpass filter
startband = 270/Fs; % Normalised startband frequency
stopband = 450/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]);