表面肌电信号降噪
表面肌電信號結合小波,EMD,EEMD,CEEMDAN降噪代碼
% EMD—EEMD—CEEMDAN-小波閾值法降噪研究 clc; clear; close all;datastruct = ghdf5read('cb_neifan12021.03.05_15.43.24.hdf5'); SEMGdata = datastruct.RawData.Samples; %fNoisy = SEMGdata(1,1000:2000).'; fNoisy = SEMGdata(1,9601:12000).'; fs = 1200; % 采樣頻率值 N = length(fNoisy); % 取信號數據長度 t = (0:1/fs:(N-1)/fs).'; % 建立離散時間列向量% 小波閾值降噪 wname = 'bior3.7'; level = 6; [C,L] = wavedec(fNoisy,level,wname); fclean = wdenoise(fNoisy,level,'Wavelet',wname,'DenoisingMethod','SURE'); plotDetCoefHelper(fNoisy,C,L); set(gcf,'color','w');%圖片為黑色背景% EMD-小波閾值降噪 modes1 = emd(fNoisy); modes1 = modes1.'; [m1,n1]=size(modes1); figure(1); for i=1:1subplot(n1,1,i);plot(t,modes1(:,i),'k');ylabel(['IMF',int2str(i)]);title('表面肌電信號EMD分解圖'); end %原始代碼 for總結
- 上一篇: 系统设计=基于表面肌电信号的不同手势识别
- 下一篇: java 产生无重复的随机数,Java创