constrained least square fitting
Afficher commentaires plus anciens
Hey
I need some help with constrained least squares. I have a vector A(mx1). I need to fit a degree n-polynomial f with a constraint that the f(1)=f(m). I am acquainted with matlab but never done curve fitting and some lead will be great help.
Thanks
2 commentaires
Walter Roberson
le 19 Juin 2011
How strict does the tolerance have to be on f(1)=f(m) ? If they must be exactly equal, that can be difficult to achieve due to standard round-off error issues.
Naresh
le 19 Juin 2011
Réponses (2)
Oleg Komarov
le 19 Juin 2011
0 votes
You can use lsqnonneg or if you have the Optimization TB then Least Squares (Model Fitting) Algorithms
Naresh
le 19 Juin 2011
0 votes
Catégories
En savoir plus sur Fit Postprocessing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!