MATLAB: Nonlinear curve-fitting: weight vector

lsqcurvefit

hi I am working on a multiobjective procedure using the 'lsqcurvefit' (Levenberg-Marquardt algorithm): I would like to use a weight vector during risolution of the best fit in order to force the best fit function following the last inputs in a better way instead of the first ones. How can I?

Best Answer

nlinfit in Statistics Toolbox
  1. Uses Levenberg-Marquardt under the hood
  2. Allows you to input a vector of weights