- check size of iii vs first_members
- check size of sol vs iii(1:first_members)
Index exceeds the number of array elements (1).
88 ビュー (過去 30 日間)
古いコメントを表示
I ran a file, but an error appears in the follownig line:
Refset=sol(iii(1:first_members),:);
with the message: Index exceeds the number of array elements (1).
What does it mean? Thank you.
3 件のコメント
Pitchai
2025 年 8 月 22 日
I run the circuit inmatlab , the error will come this type please help me to clear the error "Index exceeds the number of array elements. Index must not exceed 17"
回答 (1 件)
Cris LaPierre
2021 年 10 月 14 日
The error means you are trying to index a vector/array element that does not exist in your variable. Specifically, your error message is telling you your array has a single element, and your index is >1.
% Works
A = 27;
A(1)
% doesn't work
A(2)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!