Filter löschen
Filter löschen

Ode option

4 Ansichten (letzte 30 Tage)
Mitch Martelli
Mitch Martelli am 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

Akzeptierte Antwort

Jan
Jan am 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 Kommentar
Mitch Martelli
Mitch Martelli am 25 Nov. 2011
sorry for the delay... thanks jan...it work good...i resolve my problem..

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by