diff --git a/生命体征检测/chebyshev_IIR.m b/生命体征检测/chebyshev_IIR.m new file mode 100644 index 0000000..28b304d --- /dev/null +++ b/生命体征检测/chebyshev_IIR.m @@ -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] diff --git a/生命体征检测/chebyshev_IIR2.m b/生命体征检测/chebyshev_IIR2.m new file mode 100644 index 0000000..73eaf33 --- /dev/null +++ b/生命体征检测/chebyshev_IIR2.m @@ -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]