ecg_filter.m
来自「It is the code to demonstrate actof filt」· M 代码 · 共 24 行
M
24 行
ecg=load('ps2ex_ecg2.txt')';
sampling=300;
ww=-pi:1/sampling:pi;
w2=35/(sampling/2);
[bi,ai]=butter(2,w2,'low');
z=freqz(bi,ai,ww);
subplot(5,1,1)
plot(ww,abs(z))
fecg=filter(bi,ai,ecg)
[bn,an]=notch(10,60,sampling)
ffecg=filter(bi,ai,fecg)
zn=freqz(bn,an,ww);
subplot(5,1,2)
plot(ww,abs(zn))
subplot(5,1,3)
plot(ecg)
subplot(5,1,4)
plot(fecg)
subplot(5,1,5)
plot(ffecg)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?