フィルターのクリア

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

1 回表示 (過去 30 日間)
Lester Lim
Lester Lim 2013 年 1 月 21 日
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!!!

採用された回答

Matt J
Matt J 2013 年 1 月 21 日
You must prevent the index variable i from reaching a value of 8.
  7 件のコメント
Lester Lim
Lester Lim 2013 年 1 月 22 日
Thanks for the help! Im trying it right now and welcome other suggestions...

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by