For Programmers: Free Programming Magazines  


Home > Archive > Matlab > July 2006 > lsqnonlin - intermediate results









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author lsqnonlin - intermediate results
c.weissenborn

2006-07-31, 7:17 pm

Hello everybody,

I would like to obtain intermediate results from the
lsqnonlin-function, i.e the vector of parameters x and the
corresponding residual after each iteration? Does anybody know how to
do that?

Best regards,
Christian

John D'Errico

2006-07-31, 7:17 pm

c.weissenborn wrote:
>
>
> Hello everybody,
>
> I would like to obtain intermediate results from the
> lsqnonlin-function, i.e the vector of parameters x and the
> corresponding residual after each iteration? Does anybody know how
> to
> do that?
>
> Best regards,
> Christian
>
>


Use an OutputFcn. Its a function that lsqnonlin
will call at every iteration if you supply it.

HTH,
John
Steven Lord

2006-07-31, 7:17 pm


"c.weissenborn" <c.weissenborn@tu-harburg.de> wrote in message
news:1154363150.935022.326720@i42g2000cwa.googlegroups.com...
> Hello everybody,
>
> I would like to obtain intermediate results from the
> lsqnonlin-function, i.e the vector of parameters x and the
> corresponding residual after each iteration? Does anybody know how to
> do that?


http://www.mathworks.com/access/hel.../ug/f11022.html

--
Steve Lord
slord@mathworks.com


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com