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 个)
Azzi Abdelmalek
2013-7-23
编辑:Azzi Abdelmalek
2013-7-23
[T,Y] = ode45(odefun,tspan,y0)
% T is the time vector
Jan
2013-7-23
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!