Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Dec 14, 2006
Messages
1
Location
TW
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

Back
Top