Index in position 1 exceeds array bounds

1 view (last 30 days)
hello,
i m new on matlab
in this algrothme is showing me that the size
of the indicated variable or array appears to be changing with each loop iteration
reslt is matrice
thank you for helping
for i=1:N
temp=lena2(i,:);
rslt=eemd(temp,0.2,nesb,4);
for j= 1:N
for k=1:5
rsltd1(i,j,k)=rslt(j,k+1);
end
end
end

Accepted Answer

Image Analyst
Image Analyst on 11 Jul 2020
Yes, it's just a warning though, not an error. If you want you could preallocate it before the loop with the largest size you think it will have
rsltd1= zeros(N, N, 5);
  2 Comments
Jan Ali
Jan Ali on 14 Mar 2021
Hi Mohamed,
Could you please share your eemd code/script?
I also implement eemd algorithm for PQ signal analysis. I really appreciate if you can send me the codes to: ali12af@gmail.com
Thanks in advance,

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!