Index exceeds the number of array elements (1).
1 ビュー (過去 30 日間)
回答 (1 件)
Siriniharika Katukam 2019 年 11 月 1 日
This error is caused because you are attempting to reference a nonexistent element of an array.Common causes for this may be like changing the size of an array unexpectedly or encountering an empty array when you expected a nonempty array. Stop MATLAB on the line where the error occurs. Verify that the size of the array into which you are referencing is large enough so that the index you are using falls before the last element of the array.