Does event location terminate ODE solver at tspan?

4 ビュー (過去 30 日間)
Yi-xiao Liu
Yi-xiao Liu 2021 年 3 月 30 日
編集済み: Yi-xiao Liu 2021 年 3 月 30 日
I just wonder what's the behavior of this edge case: a event location is setup to terminate the intergration, however the event coincide with the end of tspan.
options = odeset('Events',@myEventsFcn)
[t,y,te,ye,ie] = odeXY(odefun,tspan,y0,options)
function [value,isterminal,direction] = myEventsFcn(t,y)
If value(1) becomes 0 exactly on t==tspan(end)
Will te,ye,ie contain values, or be empty in this case?

回答 (0 件)


Find more on Programming in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by