Why does odeprint not display solution every successful time step?
조회 수: 5 (최근 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!