why I'm getting this error? Can't figure this out.

I downloaded the complete toolbox named "matlab_toolboxes-master" by Gpeyre (https://github.com/gpeyre/matlab-toolboxes).
I am trying to run the matlab file \matlab-toolboxes-master\toolbox_sparsity\tests\test_mca_wavdct.m .
But I got this error again and again. Please help me as I need to complete my project by April 2019.
Thank You.
ERROR:
Index exceeds matrix dimensions.
Error in perform_wavelet_transform>IWT2_TI (line 2155)
x = tiwt(lastx,lasty);
Error in perform_wavelet_transform (line 122)
y = IWT2_TI(x,Jmin,qmf);
Error in callback_atrou (line 50)
y = perform_wavelet_transform(x,Jmin,tr, options);
Error in perform_mca (line 141)
RW = feval(callback, R,+1,opt);
Error in test_mca_wavdct (line 89)
ML = perform_mca(M, components, options);

3 Comments

It's very difficult for us to know why an error would occur in some downloaded 3rd party code. The code could be of any level of quality and may or may not make any sense at all.
In this case the link you gave is 6 years old in terms of code and the author directs you to
for more up to date code so I would suggest looking there for the latest code as the first port of call. It looks like a carefully organised repository of code so I assume it is good quality 3rd party code that should generally work, but the old version of it may not do for numerous reasons.
Vijaya
Vijaya on 25 Mar 2019
Edited: Vijaya on 25 Mar 2019
Did you try? If so did you get the same error?
I'm using Matlab 2013a. I tried other versions as well 2015a, 2017a and 2018b. But I'm getting same error and I'm stuck and I really need help.
Also, I checked the given link but I didn't find any updated code related to this particular toolbox.
I didn't try myself. I don't want to download a load of 3rd party code I don't need just to see if I see the same result as in a Matlab Answers question.

Sign in to comment.

Answers (2)

Did you try rename the file name? matlab-toolboxes-master => matlab_toolboxes_master
Then try to run evry section individualy by use " Evaluate selection "

1 Comment

I tried what you said but it didn't work.
I was using windows 10 and I was getting error, I tried in windows 7 and windows 8, the code is working fine.

Sign in to comment.

I got the same problem...Have you solved it?

Categories

Asked:

on 25 Mar 2019

Answered:

on 14 Dec 2022

Community Treasure Hunt

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

Start Hunting!