1.代码
%Perform empirical mode decomposition to plot the intrinsic mode functions and residual of the signal. %Since the signal is not smooth, specify 'pchip' as the interpolation method. clear; clc; load('sinusoidalSignalExampleData.mat','X','fs') t = (0:length(X)-1)/fs; %emd(X,'MaxNumIMF',5) %5个IMF emd(X,'Interpolation','pchip','Display',1)
2.运行结果
注:点击鼠标右键,在弹出的窗口选择"IMF 选择器...",可选择显示任意IMF,按住"ctrl"键可多选。