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 TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

solving numerically nonlinear equation

Status
Not open for further replies.

nicklelinea

Mechanical
Joined
Feb 12, 2007
Messages
1
Location
GB
i need some help here..

P=int(((s-h)^0.5)*exp(-0.5s^2)) and integral is from h to inf.
how could i use matlab to get the value of h. i know that i can solve numerically the nonlinear equation k-P(h)=0 to get h where k is constant. but how to put it into matlab command. thanks.
 
I think you need to create your own code for that. You can use the simple Rectangular Method for numerical integration. If it doesn't work very well, try the Gauss-Quadrature method.

--------------------------------
Emmanuel A. Gonzalez, E.C.E.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top