Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

about stop iteration from "EVENTS" of odeset function

Status
Not open for further replies.

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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor