Clear Filters
Clear Filters

Ode option

3 views (last 30 days)
Mitch Martelli
Mitch Martelli on 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

Accepted Answer

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

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!