Research on function extremum based on MATLABAbstract: this paper USES the MATLAB operating platform of the command function and drawing statement characteristics, will be abstract in calculus, difficult to understand the unitary function extremum problem, with MATLAB to solve. Taking a function as an example, this paper gives two ways of finding the extremum, at the same time, with the help of the drawing function of MATLAB, it visualizes the problem of finding the extremum of the function, and gives a programming idea of finding the extremum of any second differentiable unary function.