Azzera filtri
Azzera filtri

Ode option

4 visualizzazioni (ultimi 30 giorni)
Mitch Martelli
Mitch Martelli il 17 Nov 2011
Hi at all,
I would like to ask you if there is a way,using standard matlab ode function, to stop the calculation before the final time; more precisely when a specific condition is satisfied.
It is possible do it without rewrite for example the ode45?
Thanks
Mitch

Risposta accettata

Jan
Jan il 17 Nov 2011
You can call ODE45 with an event function. See the docs for ODE45, e.g. http://www.mathworks.com/help/techdoc/ref/ode45.html and look for "event".
  1 Commento
Mitch Martelli
Mitch Martelli il 25 Nov 2011
sorry for the delay... thanks jan...it work good...i resolve my problem..

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by