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

 Respuesta aceptada

Jan
Jan el 17 de Nov. de 2011

0 votos

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 comentario

Mitch Martelli
Mitch Martelli el 25 de Nov. de 2011
sorry for the delay... thanks jan...it work good...i resolve my problem..

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Preguntada:

el 17 de Nov. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by