Extrema

From the graph, you can read the approximate location of the extrema of

`fminbnd`

:
>> x1 = fminbnd(@f,0,2) x1 = 1.0878 >> x1 = fminbnd(@f(x),0,2) x1 = 1.0878 >> f(x1) ans = -1.3784So the function

The function

The following commands will now be clear.

>> x2 = fminbnd(@(x)-f(x),-1,0) x2 = -0.5902 >> f(x2) ans = 2.0456The function

With

`fminbnd`

, the location of one minimum in the indicated interval is approximated. You have to calculate the value of the minimum yourself. The precision with which the locations of extrema are calculated, can be adapted.

Esteur 2010-03-22