Secant Method for finding minima of unimodal single variable functions.The algorithm takes a large number of iterations to converge. so, if your solution is not same as given by 'fminbnd'. Increase the number of iterations 'n'. It will converge slowly.
mec (2020). Secant(a,b,n,f) (https://www.mathworks.com/matlabcentral/fileexchange/53270-secant-a-b-n-f), MATLAB Central File Exchange. Retrieved .