# "matlab root finding function" Code Answer's

You're definitely familiar with the best coding language Matlab that developers use to develop their projects and they get all their queries like "matlab root finding function" answered properly. Developers are finding an appropriate answer about matlab root finding function related to the Matlab coding language. By visiting this online portal developers get answers concerning Matlab codes question like matlab root finding function. Enter your desired code related query in the search bar and get every piece of information about Matlab code related question on matlab root finding function.

### matlab root finding function

By Flyhouse_Squarewheel on Apr 04, 2021
``````% Function for the bisection method.
% Finds root for given function f, left and right boundaries a and b and tolerance TOL
% f(a).*f(b)<0 is a requirement for this function to work

function c = bisection(f, a, b, TOL)
while(b−a)/2>TOL
c = (a+b)./2;
if f(c)=0
return
end %if

if f(a)f(c)<0
b=c;
else
a=c;
end %If
end %While
end %Function``````