Tags: matlab
, function
, minima
, maxima
, plot
main.m778 chars29 lines
To 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