필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by