Filter löschen
Filter löschen

Index exceeds matrix dimensions. -error

1 Ansicht (letzte 30 Tage)
Monika
Monika am 21 Jan. 2014
Bearbeitet: Matt J am 21 Jan. 2014
I am keep getting this error
??? Index exceeds matrix dimensions.
Error in ==> gaussmix at 130 m=xs(mod((1:k)-1,n)+1,:); % just include all points several times
Error in ==> matlab at 160 [smiech_means,smiech_variances,smiech_weights] = gaussmix(mfcc_smiech,[],[],8,'hf');

Akzeptierte Antwort

Matt J
Matt J am 21 Jan. 2014
Bearbeitet: Matt J am 21 Jan. 2014
Use DBSTOP to examine 'k' vs. length(xs) inside gaussmix.
It might also be advisable not to name your main function 'matlab'.
  6 Kommentare
Matt J
Matt J am 21 Jan. 2014
Bearbeitet: Matt J am 21 Jan. 2014
Well, if you understand what the code is doing (or even if you don't), DBSTOP will help you understand where it's gone wrong, or what bad input you might have given it. Otherwise, you may have to go to the authors of that toolbox for help.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Debugging and Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by