MATLAB Answers

0

Displaying lsqnonlin estimation values at each iteration

Asked by Edoardo Lisciandra on 13 Apr 2018
Latest activity Answered by Matt J
on 13 Apr 2018
I have 10 different measures of the output of a non-linear function with 3 unknown parameter [a,b,c]. I identified [a,b,c] using the function lsqnonlin, but I want to know what are the values of the estimations calculated at every single measure

  0 Comments

Sign in to comment.

2 Answers

Answer by Walter Roberson
on 13 Apr 2018
 Accepted Answer

options = optimset('Display', 'iter');
lsqnonlin(...., options)

  0 Comments

Sign in to comment.


Answer by Matt J
on 13 Apr 2018
 Accepted Answer

See the OutputFcn example. The example does basically exactly what you ask. It is written for fmincon, but applies to lsqnonlin as well.

  0 Comments

Sign in to comment.