Convergence function matlab. Set the objective function fun to be Rosenbrock's function.