Why does odeprint not display solution every successful time step?

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개)

카테고리

도움말 센터File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

질문:

Leo
2014년 1월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by