- 13
- 0
- 约4.9千字
- 约 7页
- 2018-07-10 发布于湖北
- 举报
原始信号:(脑电图)EMD分解图:EMD程序:% EMD_Gao: Emprical Mode Decomposition by Gao Qiang% % To get the EMD (imf) of signal X% % imf = emd_Gao(x_sig)% x_sig : input sinal (row vector)% % imf : intrinsic mode function% arrange in Matrix, in row, with residual in last row% % See: Huang, Royal Society Proceedings on Math, Physical, % and Engineering Sciences, vol. 454, no. 1971, pp. 903-995, % 8 March 1998% % % function imf = emd(x_sig)clcclose all;% x=1:1000;% y=sin(x)+cos(x);% x_sig=y;% c=x_sig;% copy signal to c% load F:\杨件数据\jizhong.mat;% x=jizhong([1:5000]);% x=jizhong;x=x_sig;c=x;N = length(x); % length of x% SDstop = 0.3; % standard deviation value when sift process stopSDstop = 0.25;imf = []; % Matrix which will contain the successive IMF, and the residue% loop to calculate the imf of signal xwhile (1) h = c; % h is the data series to be processinged SD = 1; % criterion to stop sift process, standard deviation while (SD SDstop) maxVec = []; minVec = []; % look for max and min point for i = 2: N - 1 if h (i - 1) h (i) h (i) h (i + 1) maxVec = [maxVec i]; % get max position end if h (i - 1) h (i) h (i) h (i + 1) minVec = [minVec i]; % get min position end end % check if it is residual if (length (maxVec) + length (minVec)) 2 break; end % % handle end point % if h (1) h (2) % left end point% maxVec = [1 maxVec];% else% minVec = [1 minVec];% end% if h (N) h (N - 1) % right end point% maxVec = [maxVec N];% else % minVec = [minVec N];% end %handle end point lenmax=length(maxVec); lenmin=length(minVec); %left end point if h(1)0 if(maxVec(1)minVec(1)) yleft_max=h(maxVec(1)); yleft_min=-h(1); else yleft_max=h(1); yleft_min=h(
您可能关注的文档
最近下载
- 三国杀卡牌(全套精装+限量版).pdf VIP
- 22HM001-1 海绵城市建设设计示例(一)上.pdf VIP
- 2026人教版小学数学六年级下册期末考试精选3套试卷(含答案解析).docx
- 2025年中考英语时文阅读 20(学生版+解析版).docx
- 2025年江苏专转本《财经综合基础理论(财会基础)》精编讲义复习备考必备资料.pdf VIP
- G60沪昆高速(浙江段)出入口、服务区、里程数及风景点.docx
- 高考历史蓝皮书 挖掘隐含前提.pptx VIP
- 高考文言文逆袭指南:吃透150词+6大招.docx VIP
- DB1310_T 369-2025 化学分析实验室玻璃仪器使用规.docx VIP
- 款 MAZDA(马自达)3 轿车用户使用手册.pdf VIP
原创力文档

文档评论(0)