MATLAB: Not enough input arguments.

numerical integration

Best Answer

You cannot run that code just by clicking on Run. You need to go to the command line and enter
x0 = rand
x1 = x0 + rand
tol = 1e-6
secantmethod(x0, x1, tol)
Related Question