Index exceeds the number of array elements. Index must not exceed 10000.
1 回表示 (過去 30 日間)
古いコメントを表示

How can I solve this issue ?
0 件のコメント
採用された回答
Torsten
2023 年 3 月 29 日
My guess is that "Ytrain" has less than "len" elements.
To confirm this, add the lines
disp(len)
disp(size(Ytrain))
after the line
[wid,len] = size(Xtrain)
to your code and tell us what is displayed.
その他の回答 (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!