Ode option

4 次查看(过去 30 天)
Mitch Martelli
Mitch Martelli 2011-11-17
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

采纳的回答

Jan
Jan 2011-11-17
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 个评论
Mitch Martelli
Mitch Martelli 2011-11-25
sorry for the delay... thanks jan...it work good...i resolve my problem..

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by