![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175214/image.jpeg)
non linear curve fitting for scatter points
3 次查看(过去 30 天)
显示 更早的评论
hi...i have some scatter points in x-y coordinate.how can do curve fitting for them? please help me.its very necessary for me.
0 个评论
回答(1 个)
Image Analyst
2014-7-8
When you say "non-linear" do you really mean nonlinear in x? Or do you mean just a regular polynomial, which can be, say a cubic, which can be solved with regular linear least squares like polyfit() gives you? You can have a fit that's not a straight line and it's still linear least squares because it's linear in the coefficients, not the x terms. I attach a demo for you that uses polyfit().
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175214/image.jpeg)
3 个评论
Image Analyst
2014-7-9
I'm not familiar with finding mixtures of Gaussians. See Wikipedia article http://en.wikipedia.org/wiki/Mixture_density to get started.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Least Squares 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!