Filter löschen
Filter löschen

lsqnonlin - how to return the best fit

1 Ansicht (letzte 30 Tage)
Gina Carts
Gina Carts am 16 Mär. 2018
Beantwortet: Torsten am 16 Mär. 2018
I am fitting a function nonlinearly using the lsqnonlin function. I have used the [x, res] to return the parameters (i.e. x) and the residual (i.e. res).
I am wondering if there is any way to return the best fit of the objective function instead of returning only the parameters and the residual.
Thanks in advanced.

Antworten (1)

Torsten
Torsten am 16 Mär. 2018
Just call the objective function with the x-vector of optimal paramters. It will return the best fit.
Best wishes
Torsten.

Kategorien

Mehr zu Get Started with Curve Fitting Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by