Add files via upload
This commit is contained in:
parent
edfa655533
commit
fc04eb0762
27
生命体征检测/chebyshev_IIR.m
Normal file
27
生命体征检测/chebyshev_IIR.m
Normal 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]
|
27
生命体征检测/chebyshev_IIR2.m
Normal file
27
生命体征检测/chebyshev_IIR2.m
Normal 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]
|
Loading…
Reference in New Issue
Block a user