diff options
author | Divyansh Manocha <dan12n@users.noreply.github.com> | 2018-02-26 17:14:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-26 17:14:31 +0000 |
commit | 9eb880a5ba25b29dd6d81b8ec37b7a674d4babbb (patch) | |
tree | 16e0707456cfb2e0a4ec35905ee46ca0029653bd /lab5/RTDSP | |
parent | a7be123cb6d9830ae389529fe8357d39b04e6bd3 (diff) | |
download | NoiseSilencer-9eb880a5ba25b29dd6d81b8ec37b7a674d4babbb.tar.gz NoiseSilencer-9eb880a5ba25b29dd6d81b8ec37b7a674d4babbb.zip |
Fixed filter
Diffstat (limited to 'lab5/RTDSP')
-rw-r--r-- | lab5/RTDSP/Matlab/elliptical.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lab5/RTDSP/Matlab/elliptical.m b/lab5/RTDSP/Matlab/elliptical.m index f9e2aeb..7b603c7 100644 --- a/lab5/RTDSP/Matlab/elliptical.m +++ b/lab5/RTDSP/Matlab/elliptical.m @@ -1,10 +1,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
+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]);
\ No newline at end of file +[b,a] = ellip(order/2,ripple,stopband_atten,[startband, stopband]);
|