C Math Library Reference | ![]() ![]() |
Minimize a function of one variable
Note
The mlfFmin routine was replaced by mlfFminbnd in Release 11 (MATLAB 5.3). In Release 12 (MATLAB 6.0), mlfFmin displays a warning and calls mlfFminbnd .
|
Minimum number of arguments: five, maximum: user-defined. Terminate the argument list with a NULL
.
C Prototype
mxArray *mlfFmin(mxArray **options_out, mxArray *func, mxArray *x1, mxArray *x2, mxArray *options_in, ...);
C Syntax
#include "matlab.h" mxArray *x1, *x2; /* Required input argument(s) */ mxArray *options_in, *P1, *P2; /* Optional input argument(s) */ mxArray *options_out = NULL; /* Optional output argument(s) */ mxArray *x = NULL; /* Return value */ mlfAssign(&x, mlfFmin(NULL,mxCreateString("
func
"),
x1,x2,NULL,NULL));
mlfAssign(&x, mlfFmin(NULL,mxCreateString("
func
")
, x1,x2,options_in,NULL)); mlfAssign(&x, mlfFmin(NULL,mxCreateString("
func
")
, x1,x2,options_in,P1,P2,...,NULL)); mlfAssign(&x, mlfFmin(&options_out,mxCreateString("
func
")
, x1,x2,NULL,NULL)); mlfAssign(&x, mlfFmin(&options_out,mxCreateString("
func
")
, x1,x2,options_in,NULL)); mlfAssign(&x, mlfFmin(&options_out,mxCreateString("
func
"), x1,x2,options_in,P1,P2,...,NULL));
MATLAB Syntax
x = fmin('func
',x1,x2) x = fmin('func
',x1,x2,options) x = fmin('func
',x1,x2,options,P1,P2,...) [x,options] = fmin(...)
See Also
fmin
Calling Conventions![]() | mlfFlops | fminbnd | ![]() |