I'm trying to do this using output functions, but the form of the function seems very restrictive, and it doesn't allow me to store the intermediate values in some pre-allocated matrix. All I can do is print the output, which means everything from that point on must be done manually... any help?
lsqcurvefit.m ... how to find intermediate steps?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi
I'm fitting using lsqcurvefit and the OUTPUT structure tells me there are 4 steps with 20 function evaluations before the stopping criteria is reached. Is there any way to find the parameter values at each of these steps?
My goal is to plot each fit to demonstrate the improvement between model and data.
Regards, Michael
Respuestas (2)
Sean de Wolski
el 31 de Oct. de 2012
You could have your objective function print to a text file explicitly or keep a persistent variable around that stores the intermediate steps.
4 comentarios
Ver también
Categorías
Más información sobre Encryption / Cryptography en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!