FMIN

 

 Minimize a function of one variable.

  FMIN('F',x1,x2) attempts to return a value of x which is a local 

  minimizer of F(x) in the interval x1 < x < x2.  'F' is a string 

  containing the name of the objective function to be minimized.

 

 

  FMIN('F',x1,x2,OPTIONS) uses a vector of control parameters.

  If OPTIONS(1) is nonzero, intermediate steps in the solution are

  displayed; the default is OPTIONS(1) = 0.  OPTIONS(2) is the termination

  tolerance for x; the default is 1.e-4.  OPTIONS(14) is the maximum

  number of steps; the default is OPTIONS(14) = 500.  The other components

  of OPTIONS are not used as input control parameters by FMIN.  For more

  information, see FOPTIONS1TO5WEO.

 

 

  FMIN('F',x1,x2,OPTIONS,P1,P2,...) provides for up to 10 additional

  arguments which are passed to the objective function, F(X,P1,P2,...)

 

 

  Example:

      fmin('cos',3,4) computes pi to a few decimal places.

      fmin('cos',3,4,[1,1.e-12]) displays the steps taken

      to compute pi to about 12 decimal places.