index exceed matrix dimension error
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how to solve this? if m{7}== 0 m{7}= 0.000000001; else m{7} = m{7}; end since i get error "index exceed matrix dimension"
0 commentaires
Réponse acceptée
Fangjun Jiang
le 18 Déc 2011
You have less than 7 cells in your variable m. Do the following to understand the error.
>> clear m; m=cell(6,1);m{7}
??? Index exceeds matrix dimensions.
2 commentaires
Fangjun Jiang
le 18 Déc 2011
The problem is that you don't have the 7th cell. Check the size of m using size(m)
Plus de réponses (0)
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!