EMD giving me error: "ERROR : number of arguments should be as 5"

2 views (last 30 days)
I am using Matlab 2018b.
I have a variable b2f with is a time-series. Its size is 1x7200. I am trying to use EMD as:
[imf,residual,info] = emd(b2f);
But I am getting the following error message: "ERROR : number of arguments should be as 5". I have Googled it already but I can't find out what the issue is. Does anyone know what I'm doing wrong?
Thanks!

Accepted Answer

Harsha Priya Daggubati
Harsha Priya Daggubati on 16 Mar 2020
Hi,
The input argument to 'emd' method should be uniformly sampled time-domain signal, specified as either a vector or single data column timetable. I guess the issue might be with the class of b2f variable as you mentioned it is a time-series object.
Hope this helps!
  1 Comment
Wenkang
Wenkang on 16 Sep 2020
Edited: Wenkang on 16 Sep 2020
I tried to run the demo code and it also failed.
>> load('sinusoidalSignalExampleData.mat','X','fs');
t = (0:length(X)-1)/fs;
plot(t,X);
xlabel('Time(s)');
>> [imf,residual,info] = emd(X,'Interpolation','pchip');
Error using emd
ERROR : number of arguments should be as 5
my version is 9.4.0.813654 (R2018a)
This issue can be solved by copying the original emd.m file to another folder and rename it. Dont know why but it works.

Sign in to comment.

More Answers (0)

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Tags

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!