Why does odeprint not display solution every successful time step?
1 次查看(过去 30 天)
显示 更早的评论
Odeprint is supposed to display the solution each time a solution is computed, why then does it print the solutions of time steps other than the current one?
The following example indicates that that multiple solutions are printed at once instead of one at a time. For example ( for ODE45 solving a sinusoidal function) if I modify odeprint to not clear the command window each time it is called, the first four calls produce:
t = 0 3
y = 1
t = 0.0500
y = 0.9938
t = 0.1000 0.1500 0.2000 0.2500
y = 0.9755 0.9463 0.9081 0.8631
t = 0.3000 0.3500 0.4000 0.4500 0.5000 0.5500 0.6000
y = 0.8141 0.7643 0.7167 0.6743 0.6398 0.6152 0.6020
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!