How can I save the output parameters for each step using lsqnonlin function?
11 views (last 30 days)
Show older comments
Niccolò Barni on 2 Aug 2022
Answered: Alan Weiss on 3 Aug 2022
I am performing a nonlinear least square estimation of some parameters of a rational function to fit some experimental data, and I would like to save the parameters (x) obtained for each optimization step (and not just the final values). What can I do?
Alan Weiss on 3 Aug 2022
Write an output function to save the values, either to a workspace variable or to a file. For syntax details, see Output Function and Plot Function Syntax.
MATLAB mathematical toolbox documentation
More Answers (0)
Find more on Problem-Based Optimization Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!