Tags: matlab, function, minima, maxima, plot
main.m778 chars29 linesTo find the minima and maxima, we use the fminbnd() and fmaxbnd() functions with appropriate intervals. The function fminbnd() finds the minimum of a function in a bounded interval, while fmaxbnd() finds the maximum. We display the output using fprintf() statements.
gistlibby LogSnag