HMM with 41 states error occurs
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (2)
Sean de Wolski
le 6 Mai 2013
Modifié(e) : Sean de Wolski
le 6 Mai 2013
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 commentaires
Voir également
Catégories
En savoir plus sur Matrix Indexing 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!