function Hd = RR_BPF20 %RR_BPF20 Returns a discrete-time filter object.55555555 % MATLAB Code % Generated by MATLAB(R) 9.5 and Signal Processing Toolbox 8.1. % Generated on: 07-Apr-2021 18:57:26 % Butterworth Bandpass filter designed using FDESIGN.BANDPASS. % All frequency values are in Hz. Fs = 20; % Sampling Frequency N = 8; % Order Fc1 = 0.1; % First Cutoff Frequency Fc2 = 0.6; % Second Cutoff Frequency % Construct an FDESIGN object and call its BUTTER method. h = fdesign.bandpass('N,F3dB1,F3dB2', N, Fc1, Fc2, Fs); Hd = design(h, 'butter'); % [EOF]
时间: 2023-12-27 09:03:31 浏览: 193
BPF.zip_BPF_BPF by GUI matlab_bandpass matlab_bpf by matlab
这段代码是一个 MATLAB 函数,用于生成一个离散时间滤波器对象。它使用了 Signal Processing Toolbox 中的 fdesign.bandpass 函数来构造一个 Butterworth 带通滤波器。其中,Fs 是采样频率,N 是滤波器阶数,Fc1 和 Fc2 分别是带通滤波器的上下截止频率。最后,通过 design 函数来生成一个滤波器对象 Hd。
阅读全文