matlab投影高通滤波器代码
时间: 2023-10-11 11:09:19 浏览: 97
MATLAB中实现投影高通滤波器的代码如下:
```matlab
% 设置滤波器参数
fs = 1000; % 采样率
fpass = 50; % 通带截止频率
fstop = 100; % 阻带截止频率
apass = 1; % 通带最大衰减
astop = 60; % 阻带最小衰减
% 设计滤波器
d = fdesign.highpass('N,Fp,Fst,Ap,Ast', 10, fpass, fstop, apass, astop, fs);
Hd = design(d, 'equiripple');
% 应用滤波器
filtered_signal = filter(Hd, input_signal);
```
阅读全文