Index in position 2 exceeds array bounds (must not exceed 1).????
1 回表示 (過去 30 日間)
古いコメントを表示
dimension of x is 100x1

0 件のコメント
回答 (1 件)
Rik
2019 年 11 月 24 日
You are trying to access x(:,2) in the second iteration of either loop. Either change that, or switch to size(x,2) in your loop definition.
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!