Err0r within code

Please Im facing this errors in my code. Please any help will be appreciated.
Error in tvf_emd>extendsignal (line 343)
endInds = FastCrossing(y,y(nPoints));% find points index has the same level
Error in tvf_emd (line 49)
y=extendsignal(y,num_padding); % padding to deal with boundary effect (match slope)
Please the code and the data is attached.
K>>

6 Comments

I appreciate your concern. the difference is that this time i suppressed the previous definition of y and used this
y=extendignal(y,num_padding); % padding to deal with boundary effect (match slope)
instead of
% y = [fliplr(y(2:2+num_padding-1)) y fliplr(y(end-num_padding:end-1))]; % padding to deal with boundary effect (symmetric)
No definition for function zerocross ?
The function is for 'S crosses level'
No function for zerocross
Your code contains the line
ind = zerocross(s);
but there is no other reference to zerocross in what you posted. In context it can only be a function.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 22 Sep 2019

0 votes

Your code for your function extendsignal() is clearly written for the case where the input is a row vector, but you are passing in a 500 x 231 array instead. Even if you do not run into problems with array size mismatches, it will obviously not produce the correct answer for the case where each row or each column of the 2D matrix is to be considered independently.

Tags

Asked:

on 21 Sep 2019

Commented:

on 9 Oct 2019

Community Treasure Hunt

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

Start Hunting!