Azzera filtri
Azzera filtri

Why does odeprint not display solution every successful time step?

5 visualizzazioni (ultimi 30 giorni)
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

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by