Roomain
Mechanical
- Dec 14, 2006
- 1
Hi,
I would like to know about the criterion to stop iteration from "Events" of odeset (ode45) function.
options=odeset('Events',@ft2gnd);
[T,Y,te,ye,Ie] = ode45(@biped1,tspan,y0,options);
Because of from Matlab help, we have:
[T,Y,TE,YE,IE] = ode45(odefun,tspan,y0,options)
Could anybody explain more about how to use "the integration terminate at a zero".
EVENTS:[VALUE,ISTERMINAL,DIRECTION]=EVENTS(T,Y)
With assume that when VALUE=0, the iteration will stop?
Would someone like to show example about this?
Many thanks
I would like to know about the criterion to stop iteration from "Events" of odeset (ode45) function.
options=odeset('Events',@ft2gnd);
[T,Y,te,ye,Ie] = ode45(@biped1,tspan,y0,options);
Because of from Matlab help, we have:
[T,Y,TE,YE,IE] = ode45(odefun,tspan,y0,options)
Could anybody explain more about how to use "the integration terminate at a zero".
EVENTS:[VALUE,ISTERMINAL,DIRECTION]=EVENTS(T,Y)
With assume that when VALUE=0, the iteration will stop?
Would someone like to show example about this?
Many thanks