Bisection's method

version (1.73 KB) by Andrea Cirillo
It's a matlab function that finds a regular real function's zero with the bisection's method.


Updated Tue, 28 Dec 2010 13:06:37 +0000

View License

function p_min=bisection(func,int,iter,tol_x,tol_f)
% It calculates the zero of a regular real function with one variable.
% p_min is the solution and represents the abscissa's value of the zero.
% The input variables are:
% -func: it's a string that represents the function in the variable 'x'.
% -int: it's a vector with two elements. The first is the minor bound, the
% second is the greater bound.
% -iter: it's the max number of iteration.
% -tol_x: it's the tolerance on the successive steps.
% -tol_f: it's the tolerance on the successive function's values.

It plots the function's and the solution's trend.

Cite As

Andrea Cirillo (2022). Bisection's method (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Bisection Method Root Finding

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!