Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
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!!!

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by