How can I save the output parameters for each step using lsqnonlin function?

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?
Best regards,

 채택된 답변

Alan Weiss
Alan Weiss 2022년 8월 3일
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.
Alan Weiss
MATLAB mathematical toolbox documentation

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

질문:

2022년 8월 2일

답변:

2022년 8월 3일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by