diff options
Diffstat (limited to 'lab5/RTDSP/Matlab/m_filter.m')
-rw-r--r-- | lab5/RTDSP/Matlab/m_filter.m | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lab5/RTDSP/Matlab/m_filter.m b/lab5/RTDSP/Matlab/m_filter.m deleted file mode 100644 index 581c631..0000000 --- a/lab5/RTDSP/Matlab/m_filter.m +++ /dev/null @@ -1,29 +0,0 @@ -function Hd = m_filter -%M_FILTER Returns a discrete-time filter object. - -% MATLAB Code -% Generated by MATLAB(R) 9.2 and the Signal Processing Toolbox 7.4. -% Generated on: 15-Feb-2018 14:19:05 - -% Equiripple Bandpass filter designed using the FIRPM function. - -% All frequency values are in Hz. -Fs = 8000; % Sampling Frequency - -Fstop1 = 355; % First Stopband Frequency -Fpass1 = 415; % First Passband Frequency -Fpass2 = 1200; % Second Passband Frequency -Fstop2 = 1270; % Second Stopband Frequency -Dstop1 = 0.0039810717055; % First Stopband Attenuation -Dpass = 0.028774368332; % Passband Ripple -Dstop2 = 0.0039810717055; % Second Stopband Attenuation -dens = 20; % Density Factor - -% Calculate the order from the parameters using FIRPMORD. -[N, Fo, Ao, W] = firpmord([Fstop1 Fpass1 Fpass2 Fstop2]/(Fs/2), [0 1 ... - 0], [Dstop1 Dpass Dstop2]); - -% Calculate the coefficients using the FIRPM function. -Hd = firpm(N, Fo, Ao, W, {dens}); - -% [EOF] |