Display resnorm at each iteration of lsqcurvefit?

I'm trying to display/store the value of resnorm for each iteration of the lsqcurvefit optimization, but it doesn't appear that the 'Display' value 'iter-detailed' produces that output.
Should it be giving me that information and another issue is going on, or is this not the way I should be trying to get that information?

Respuestas (1)

Alan Weiss
Alan Weiss el 30 de Sept. de 2014

0 votos

The residual is returned in the iterative display. For the trust-region-reflective algorithm (default), the heading is f(x). For the levenberg-marquardt algorithm, the heading is Residual. You can use either 'iter' or 'iter-detailed' for the Display option to obtain iterative display.
Alan Weiss
MATLAB mathematical toolbox documentation

1 comentario

Matt J
Matt J el 30 de Sept. de 2014
Just a small point. The 'f(x)' or 'Residual' displayed values appear to really be resnorm^2.

Iniciar sesión para comentar.

Categorías

Preguntada:

el 29 de Sept. de 2014

Comentada:

el 30 de Sept. de 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by