📄 emd_separation.m
字号:
% EMD_SEPARATION.M%% P. Flandrin, Mar. 13, 2003%% computes and displays an error measure in the EMD% separation of two tones%% produces Figure 4 in%% G. Rilling, P. Flandrin and P. Gon鏰lv鑣% "On Empirical Mode Decomposition and its algorithms"% IEEE-EURASIP Workshop on Nonlinear Signal and Image Processing% NSIP-03, Grado (I), June 2003N = 256;% # of data samplest = 1:N;tt = N/4:3*N/4;Nf = 129;% # of tested fequenciesf = linspace(0,.5,Nf);rapp = 8;% amplitude ratio between modesa1 = sqrt(rapp);a2 = 1/a1;x1 = a1*cos(2*pi*f'*t);x2 = a2*cos(2*pi*f'*t);se = zeros(Nf);for k1 = 5:Nf-1 for k2 = 2:k1-1; y1 = x1(k1,:); y2 = x2(k2,:); sy1 = sum((y1(tt)).^2); sy2 = sum((y2(tt)).^2); sy = sum((y1(tt)).^2+(y2(tt)).^2); imf = emd(y1+y2,t,[0.05,0.5,0.05]); se(k1,k2) = sqrt((sy1*sum((imf(1,tt)-y1(tt)).^2) + sy2*sum((imf(2,tt)-y2(tt)).^2))/(sy1+sy2)/sy); [k1 k2 size(imf)] endendimagesc(f,f,flipud(se'))axis('square')axis([0 .5 0 .5])hold onplot([f(2) f(Nf-1)],[f(Nf-1) f(Nf-1)])plot([f(Nf-1) f(Nf-1)],[f(2) f(Nf-1)])plot([f(2) f(Nf-1)],[f(Nf-1) f(2)])set(gca,'YTick',[]);set(gca,'XTick',[])xlabel('f_1 > f_2')ylabel('f_2')colormap(jet)%colormap(flipud(gray))colorbar('vert')hold off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -