From fc04eb07624e8f21564575e61abcc3d416bbb667 Mon Sep 17 00:00:00 2001 From: "St. Zhang" <119722046+StZhang-B@users.noreply.github.com> Date: Mon, 11 Mar 2024 20:56:53 +0800 Subject: [PATCH] Add files via upload --- 生命体征检测/chebyshev_IIR.m | 27 +++++++++++++++++++++++++++ 生命体征检测/chebyshev_IIR2.m | 27 +++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 生命体征检测/chebyshev_IIR.m create mode 100644 生命体征检测/chebyshev_IIR2.m 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]