?? ecg_filter.m
字號:
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)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -