ppgband=bandpass(ired6,360);
Ired6=bandpass(ired6,360);
Iredband=bandpass(ired6,360);
Iredband(1643:1,1892)=[];
x1=Ired6(129:378);
x2=Ired6(396:645);
x3=Ired6(893:1142);
x4=(x1+x2+x3)/3;
Ired6(1643:1892)=x4;
Ired11 = smooth(Ired6,20);
%subplot(5,1,1)
%plot(ppgband) %含有错误波
%subplot(2,1,1)
%plot(Ired6) %剔除错误波
%subplot(2,1,2)
%plot(Ired11) %重新合成波
Iredband(1884:1,2132)=[];
x5=Ired11(388:636);
x6=Ired11(885:1133);
x7=Ired11(1143:1391);
x8=(x5+x6+x7)/3;
Ired11(1884:2132)=x8;
Ired12=smooth(Ired11,20);
%subplot(2,1,2);
%plot(Ired12);
Iredband(2122:1,2370)=[];
x9=Ired12(388:636);
x10=Ired12(885:1133);
x11=Ired12(1644:1892);
x12=(x9+x10+x11)/3;
Ired12(2122:2370)=x12;
Ired13=smooth(Ired12,20);
%subplot(2,1,2);
%plot(Ired13);
Iredband(2361:1,2607)=[];
x13=Ired13(388:634);
x14=Ired13(1385:1631);
x15=Ired13(1648:1894);
x16=(x13+x14+x15)/3;
Ired13(2361:2607)=x16;
Ired14=smooth(Ired13,20);
%subplot(2,1,2);
%plot(Ired14);
Iredband(2598:1,2840)=[];
x17=Ired14(1403:1645);
x18=Ired14(1645:1887);
x19=Ired14(1887:2129);
x20=(x17+x18+x19)/3;
Ired14(2598:2840)=x20;
Ired15=smooth(Ired14,20);
%subplot(2,1,2);
%plot(Ired15);
Iredband(2831:1,3081)=[];
x21=Ired15(386:636);
x22=Ired15(636:886);
x23=Ired15(1138:1388);
x24=(x21+x22+x23)/3;
Ired15(2831:3081)=x24;
Ired16=smooth(Ired15,20);
%subplot(2,1,2);
%plot(Ired16);
Iredband(3074:1,3318)=[];
x25=Ired16(896:1140);
x26=Ired16(1140:1384);
x27=Ired16(1890:2134);
x28=(x25+x26+x27)/3;
Ired16(3074:3318)=x28;
Ired17=smooth(Ired16,20);
%subplot(2,1,2);
%plot(Ired17);
Iredband(3310:1,3600)=[];
x29=Ired17(387:677);
x30=Ired17(889:1179);
x31=Ired17(2126:2416);
x32=(x29+x30+x31)/3;
Ired17(3310:3600)=x32;
Ired18=smooth(Ired17,20);
%subplot(2,1,2);
%plot(Ired18);
subplot(2,1,1);
plot(ired6);
subplot(2,1,2);
plot(Ired18);
bandpass.zip_PPG_PPG信号_matlab 特征提取 信号处理_ppg特征提取_波峰
版权申诉
5星 · 超过95%的资源 164 浏览量
2022-07-15
21:12:33
上传
评论 5
收藏 2KB ZIP 举报
钱亚锋
- 粉丝: 86
- 资源: 1万+
评论13