联系QQ:

2181264433

新闻资讯
联系我们
联系:张女士
微信:扫一扫右侧二维码
QQ :2181264433
邮箱:2181264433@qq.com
地址:浙江省-嘉兴市-南湖区
网址:www.mhslogic.com
您当前位置:首页 > 国内资讯 > 正文国内资讯
MATLAB代做|FPGA代做|simulink代做——心电信号IMF分解
添加时间:2020-5-30 来源:本站整理

function[heart_rate]=xinlv(m,n)
a=1;
b=1;
c=1;
d=1;
Lm=length(m);
Ln=length(n);
for i=3:2:Lm
    heart_rate1(a)=m(i)-m(i-2);
    a=a+1;
end
for i=4:2:Lm
    heart_rate2(b)=m(i)-m(i-2);
    b=b+1;
end

for i=3:2:Ln
    heart_rate3(c)=n(i)-n(i-2);
    c=c+1;
end
for i=4:2:Ln
    heart_rate4(d)=n(i)-n(i-2);
    d=d+1;
end
heart_rate=mean(heart_rate1)+mean(heart_rate2)+mean(heart_rate3)+mean(heart_rate4);
heart_rate=heart_rate/4;
heart_rate=heart_rate*15;
heart_rate=60/(heart_rate/11025);
heart_rate=round(heart_rate+0.5)

扫一扫,关注我们