Several methods of how to calculate the zero of a function in MATLAB