资源简介
能实现心电信号汉宁窗平滑滤波、多点抛物线拟合平滑滤波
两点差分求导、三点差分求导、最小二乘多项式求导
中值滤波
数字陷波器设计
积分功能
代码片段和文件信息
clcclearclose all
%%
%1、cardiac hemodynamic analysis
% ICG signals - 5 channels include heart sound signal ECG delta Z and dzdt signal base z signal.
% Fs=1000Hz
% fr=fopen(‘F:\matlab学习\signals\ICG with noise\170227068820170308092718.icg‘‘r‘); % change the path based on your computer
fr=fopen(‘170227068820170308092718.icg‘‘r‘);
%‘r‘以只读方式打开文件,该文件必须存在
[Als]=fread(fr‘double‘);
fclose(fr);
%%
Length=10000;%length is the length of every channel
for i=1:Length
pcg(i)=A(5*(24000+i-1)+1);
ecg(i)=A(5*(24000+i-1)+2);
dz(i)=-A(5*(24000+i-1)+3);
dzdt(i)=A(5*(24000+i-1)+4);
z(i)=A(5*(24000+i-1)+5);
end
%%%% output the signals of 5 channels
figure(1);
subplot(511);plot(pcg);title(‘pcg signal‘);
subplot(512);plot(ecg);title(‘ecg signal ‘);
subplot(513);plot(dz);title(‘delta z signal ‘);
subplot(514);plot(dzdt);title(‘dzdt signal‘);
subplot(515);plot(z(1:200));title(‘base z‘);
%% 使用Hanning滤波
sig=ecg;
n=size(sig2);
for i=1:n-2
sig_h(i)=(sig(i)+2*sig(i+1)+sig(i+2))/4;
end
sig_h(n)=sig_h(n-2);
sig_h(n-1)=sig_h(n-2);
%% 使用最小均方多项式平均(5点)
for i=1:n-4
sig_min(i)=((-3)*sig(i)+12*sig(i+1)+17*sig(i+2)+12*sig(i+3)+(-3)*sig(i+4))/35;
end
figure
xmin=0;
xmax=n;
% xmax=2000;
ymin=-1;
ymax=1;
figure(2)
subplot(311);plot(sig);title(‘原始信号‘);axis([xminxmaxyminymax]);
subplot(312);plot(sig_h);title(‘Hanning滤波‘);axis([xminxmaxyminymax]);
subplot(313);plot(sig_min);title(‘最小均方多项式平均滤波‘);axis([xminxmaxyminymax]);
%% 求导两点差分
sig=sig_h;%处理目标信号
fs=1000;%采样率
T=1/fs;%周期
for i=2:n
sig_d2(i)=(sig(i)-sig(i-1))/T;
end
figure
subplot(311);plot(sig);title(‘原始信号‘);axis([010000-11]);
subplot(312);plot(sig_h);title(‘Hanning滤波‘);axis([010000-
- 上一篇:轮毂电机驱动电动汽车电子差速器仿真研究.rar
- 下一篇:最小二乘法进行系统辨识
相关资源
- 串行级联cpm系统MATLAB仿真
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
评论
共有 条评论