Optimization Commands fminbnd Find the minimum of a univariate real function within an interval. fminsearch Find the unconstrained minimum of a real function using the Nelder-Mead simplex algorithm. fminunc Find the unconstrained minimum of a real function. fsolve Find a solution of a system of real nonlinear equations. fzero Find a root of a univariate real function within an interval. lsqcurvefit Find the equation parameters that produce the least squares best fit to a data set. optimset Specify optimization function options.