HMM with 41 states error occurs
1 回表示 (過去 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!