Index exceeds the number of array elements. Index must not exceed 1 error

1 view (last 30 days)
So I am pretty new to matlab. When I was doing the assigment coding I got this error. Anyone has any idea why.

Answers (1)

KSSV
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.

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!