constrained least square fitting
7 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2011-6-19
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.
回答(2 个)
Oleg Komarov
2011-6-19
You can use lsqnonneg or if you have the Optimization TB then Least Squares (Model Fitting) Algorithms
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fit Postprocessing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!