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

回答(2 个)

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

类别

标签

提问:

2013-7-23

Community Treasure Hunt

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

Start Hunting!

Translated by