How is the residual in lsqnonlin calculated?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Does anyone know how's the residual being calcualted in lsqnonlin function?
I am interested to know the formula.
Is it : res = sum(fun(x).^2) at x?
Where fun is the function you are trying to minimize.
2 commentaires
John D'Errico
le 2 Avr 2019
Exactly. lsqnonlin does not calculate any residual. YOU calculate it, and return that to lsqnonlin, via your objective function.
Réponses (0)
Voir également
Catégories
En savoir plus sur Interpolation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!