Add files via upload

This commit is contained in:
St. Zhang 2024-03-11 20:56:53 +08:00 committed by GitHub
parent edfa655533
commit fc04eb0762
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,27 @@
function Hd = chebyshev_IIR
%CHEBYSHEV_IIR
% MATLAB Code
% Generated by MATLAB(R) 9.10 and Signal Processing Toolbox 8.6.
% Generated on: 06-May-2022 09:49:00
% Chebyshev Type I Bandpass filter designed using FDESIGN.BANDPASS.
% All frequency values are in Hz.
Fs = 20; % Sampling Frequency
Fstop1 = 0.05; % First Stopband Frequency
Fpass1 = 0.1; % First Passband Frequency
Fpass2 = 0.5; % Second Passband Frequency
Fstop2 = 0.55; % Second Stopband Frequency
Astop1 = 30; % First Stopband Attenuation (dB)
Apass = 3; % Passband Ripple (dB)
Astop2 = 30; % Second Stopband Attenuation (dB)
match = 'passband'; % Band to match exactly
% Construct an FDESIGN object and call its CHEBY1 method.
h = fdesign.bandpass(Fstop1, Fpass1, Fpass2, Fstop2, Astop1, Apass, ...
Astop2, Fs);
Hd = design(h, 'cheby1', 'MatchExactly', match);
% [EOF]

View File

@ -0,0 +1,27 @@
function Hd = chebyshev_IIR2
%CHEBYSHEV_IIR
% MATLAB Code
% Generated by MATLAB(R) 9.10 and Signal Processing Toolbox 8.6.
% Generated on: 06-May-2022 09:49:00
% Chebyshev Type I Bandpass filter designed using FDESIGN.BANDPASS.
% All frequency values are in Hz.
Fs = 20; % Sampling Frequency
Fstop1 = 0.7; % First Stopband Frequency
Fpass1 = 0.8; % First Passband Frequency
Fpass2 = 1.9; % Second Passband Frequency
Fstop2 = 2; % Second Stopband Frequency
Astop1 = 40; % First Stopband Attenuation (dB)
Apass = 3; % Passband Ripple (dB)
Astop2 = 40; % Second Stopband Attenuation (dB)
match = 'passband'; % Band to match exactly
% Construct an FDESIGN object and call its CHEBY1 method.
h = fdesign.bandpass(Fstop1, Fpass1, Fpass2, Fstop2, Astop1, Apass, ...
Astop2, Fs);
Hd = design(h, 'cheby1', 'MatchExactly', match);
% [EOF]