Recieving error Index exceeds the number of array elements (93) when attempting to useODE45?
Show older comments

I get only 93 elements in the t matrix and i have to find the 350th one.

I need the 350th element in the entire matrix so i need the 35th column on the 4th row element. That is my number. how should I write it so i wont get any errors?
How should I write this Code: ??


1 Comment
Stephen23
on 17 Jan 2019
@Nuber Claudiu: it sounds like you might be confusing the independent variable with indices. If t only has 93 elements, what do you expect its 350th (non-existent) element to be?
I suspect that you actually need to be looking at values, not indices. But as you have not explained anything about t or 350 and what they represent and what you are trying to achieve, this is all just guesswork.
Accepted Answer
More Answers (0)
Categories
Find more on Ordinary Differential Equations 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!