Index exceeds the number of array elements. Index must not exceed 1 error
1 view (last 30 days)
Show older comments
So I am pretty new to matlab. When I was doing the assigment coding I got this error. Anyone has any idea why.
0 Comments
Answers (1)
KSSV
on 21 Apr 2022
The function dxdtProb20222 needs input as x; x should be an array of size 1x6 or 6x1. It seems in your case x is of not that size and you are getting error. Check your input properly.
Show us your code, how you have run the function.
Don't attach code as an image, copy and paste the code here.
0 Comments
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!