Secant Method Function Matlab Code