how to read th ode45 iteration time

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

Answers (2)

Azzi Abdelmalek
Azzi Abdelmalek on 23 Jul 2013
Edited: Azzi Abdelmalek on 23 Jul 2013
[T,Y] = ode45(odefun,tspan,y0)
% T is the time vector
Jan
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.

Tags

Asked:

on 23 Jul 2013

Community Treasure Hunt

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

Start Hunting!