Detection of objects
3 ビュー (過去 30 日間)
古いコメントを表示
Subscript indices must either be real positive integers or logicals
0 件のコメント
採用された回答
Sean de Wolski
2011 年 2 月 4 日
is 0 a "real positive integer"?
Unlike other languages, MATLAB begins indexing at 1. e.g.
x(0) => your_error
x(1) => indexes first element
その他の回答 (1 件)
Vieniava
2011 年 2 月 4 日
in Matlab vector/matrix indexing starts from 1, not from 0, so you should change for-loop starting value on 1 .
参考
カテゴリ
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!