EMD 加 时频分析

fs = 500;
ts = 1/fs;
t=0:ts:2;
n=length(t);

z = 0.7*sin(2*pi*15*t) + sin(2*pi*20*t);
imf=emd(z);

subplot(size(imf,1)+1,2,1);
plot(t*ts,z,'k')
grid on ;
title('EMD分解');

subplot(size(imf,1)+1,2,2);
P2=abs(fft(z)/n);
P1=P2(1:n/2+1);
P1(2:end-1) = 2*P1(2:end-1);
f = fs*(0:(n/2))/n;
plot(f,P1,'k');
grid on ;
title('对应频谱');

for i = 2:size(imf,1)+1
        
        subplot (size(imf,1)+1,2,i*2-1);
        plot  (t*ts,imf(i-1,:),'k');
        grid on ;
         
         subplot (size(imf,1)+1,2,i*2);
         P2=abs(fft(imf(i-1,:))/n);
         P1=P2(1:n/2+1);
         P1(2:end-1) = 2*P1(2:end-1);
         plot(f,P1,'k');
         grid on ;
end

subplot1 = subplot(6,2,11);
hold(subplot1,'on');
zlabel('ZLabel','EdgeColor',[0 1 0],'Rotation',22);
ylabel({'残差'});
title('Title');

box(subplot1,'off');         % 对当前坐标图加上或撤销边框
% grid(subplot1,'on');
%  emd_visu(z,t,imf)  % EMD专用画图函数

 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值