HMM with 41 states error occurs
조회 수: 2 (최근 30일)
이전 댓글 표시
I am getting this error when I added the 41th state into my HMM model:
Attempted to access tr(39,0); index must be a positive integer or logical.
How can I solve this problem please?
댓글 수: 0
답변 (2개)
Sean de Wolski
2013년 5월 6일
편집: Sean de Wolski
2013년 5월 6일
MATLAB uses 1-based indexing not zero. In order to reference the 39th element in the first column:
tr(39,1)
Please post all of the code used to get tr is this does not answer your question.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!