最近在matlab2018b上运行EMD官方的代码:
load(‘sinusoidalSignalExampleData.mat’,‘X’,‘fs’);t = (0:length(X)-1)/fs;plot(t,X);
xlabel(‘Time(s)’);
[imf,residual,info] = emd(X,‘Interpolation’,‘pchip’);
hht(imf,fs);
按理会得到帮助文档上的结果,可最后总是报错:
bad option field name: Interpolation
检查了好几遍,EMD函数从matlab2018就开始支持,调用也没问题,后来整了老半天,发现是之前安装了第三方的EMD工具箱,没有调用到matlab自带的EMD函数,才导致报错。
卸载原有的工具箱,问题完美解决~