필터 지우기
필터 지우기

lsqnonlin - how to return the best fit

조회 수: 1 (최근 30일)
Gina Carts
Gina Carts 2018년 3월 16일
답변: Torsten 2018년 3월 16일
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.

답변 (1개)

Torsten
Torsten 2018년 3월 16일
Just call the objective function with the x-vector of optimal paramters. It will return the best fit.
Best wishes
Torsten.

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by