[ret1, ret2] = wrap_f_dfdp (f, dfdp, varargin)
f and dftp should be the objective function (or "model function" in
curve fitting) and its jacobian, respectively, of an optimization
problem. ret1: f (varagin{:}), ret2: dfdp (varargin{:}). ret2 is
only computed if more than one output argument is given. This
manner of calling f and dfdp is needed by some optimization
functions.
Package: optim