Try searching for "matlab bisection" you will find a number of hits among which are:
http://www.mathhelpforum.com/math-he...on-method.html
http://www.mathhelpforum.com/math-he...on-method.html
CB
my group was given this equation to be solved using matlab software,but i dont know how to write down the function
since im a first time user of matlab,please help me ASAP
f(x) = [(4+x)/ (42-2x) 2(30-x)] – 0.015
Lower limit = 0
Upper limit = 20
Єs = 0.5 %
The zero lies approximately at 16 using graphical method
Now I need to solve this using bisection method using matlab software
Please help me
Try searching for "matlab bisection" you will find a number of hits among which are:
http://www.mathhelpforum.com/math-he...on-method.html
http://www.mathhelpforum.com/math-he...on-method.html
CB
Matlab has some built_in functions that you may use to check your results too.
This is a very handy routine for root finding. Since you mentioned the bracketing method specifically, the first link CB gave you should be all you need to solve your problem as there is no "fancy" code in that routine so only a basic understanding of Matlab is required.Code:EDU>> help fsolve
Regards Elbarto
A search of MHF using the search string "matlab newton" turns up lots of hits including:
http://www.mathhelpforum.com/math-he...on-method.html
http://www.mathhelpforum.com/math-he...od-matlab.html
CB