Is it possible to record how minerr() change the parameter?
Hi:
My code contains 3 parameters (x1,x2,a2) and uses minerr(x1,x2,a2) to shoot a minimum error.
In the code, I first give 3 initial values to x1,x2,a2 (Ex: x1=3, x2=3, a2=3).
Then minerr(x1,x2,a2) returns me another 3 values of x1,x2,a2 (Ex: x1=1, x2=1, a2=1).
My question is:
I know minerr() utilize LMA to find x1=1, x2=1, a2=1 after several loops.
Is there any bulit-in function or written code can be use to record how minerr() find x1=1, x2=1, a2=1?
The reason of asking this question is for code debug purpose...


