Filter löschen
Filter löschen

Attempted to access PriorProb(8); index out of bounds because numel(PriorProb)=7.

1 Ansicht (letzte 30 Tage)
Error: Attempted to access PriorProb(8); index out of bounds because numel(PriorProb)=7.
What does this error mean? I got it when I put in:
W(i,1) = -0.5 * Temp * GroupMean(i,:)' + log(PriorProb(i));
I have 7 prior probability numbers that I used and this error showed up. Need help!!!

Akzeptierte Antwort

Matt J
Matt J am 21 Jan. 2013
You must prevent the index variable i from reaching a value of 8.
  7 Kommentare
Lester Lim
Lester Lim am 22 Jan. 2013
Thanks for the help! Im trying it right now and welcome other suggestions...

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays 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