index exceed matrix dimension error
8 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Fangjun Jiang
2011 年 12 月 18 日
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 件のコメント
Fangjun Jiang
2011 年 12 月 18 日
The problem is that you don't have the 7th cell. Check the size of m using size(m)
その他の回答 (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!