Bisection Method | Programming Numerical Methods in MATLAB (2018)

Download the MATLAB code file from:
For more methods and codes:

In this video tutorial, the algorithm and MATLAB programming steps of finding the roots of a nonlinear equation by using bisection method are explained.


Sihem Princess says:

Thanks ever so much for your help.
Please, i have questions about the MATLAB code used for the bisection method:
1- Does the keyword “return” mean skipping from if and whole program (for example from line 6 to the end of the program)? and what is the difference between it and break?
2- You did not use nested if because there is no relation between conditions?
3- Could we start with this condition y(x2)*y(xh) instead of y(x1)*y(xh)?

Zhiwar Sami says:

Thanks very much. You are really the best

Ar-ar Malik says:

Can you make a functions of this? I mean that program allows to enter any equation to solve the root?

karim electronics says:

Thank you for this helpful video.
What if we want to use while loop. What will be the condition inside the while?

 Write a comment


Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!