Recieving error Index exceeds the number of array elements (98) when attempting to useODE45?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I get this error trying to run the 2 codes
And I don't know if this is written coreclty. It was taken from a 2008 Version.
I get only 98 elements in the t matrix and i have to find the 350th one.
0 Kommentare
Antworten (1)
Fangjun Jiang
am 16 Jan. 2019
t is 93x1 double, iM is 350. You try to access t(iM) which doe not exist. In other words, the index (iM, whose value is 350) exceeds the number of array elements (which is 93).
2 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!