how to read th ode45 iteration time
3 views (last 30 days)
Show older comments
i want to interpolate between the time i have imy data and the iteration time of ode45. so i want to know how can i get or read the iteration time that ode 45 sets
0 Comments
Answers (2)
Azzi Abdelmalek
on 23 Jul 2013
Edited: Azzi Abdelmalek
on 23 Jul 2013
[T,Y] = ode45(odefun,tspan,y0)
% T is the time vector
0 Comments
Jan
on 23 Jul 2013
You can define the inputs tspan accordingly as a vector, than ODE45 replies the trajectories at the specified time points. This is more accurate than an interpolation afterwards.
0 Comments
See Also
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!