Fitting multiple datasets simultaneously
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I was wondering if there is a way do a linear fit on 2 datasets simultaneously? It seems like you can only do a linear fit on one dataset with the figure fitting function?
0 个评论
采纳的回答
Image Analyst
2014-6-10
I don't know what that function is. But why not just do it in code with the polyfit() function? Just stitch together the multiple x and y before passing in
coefficients = polyfit(multipleXs, multipleYs, 1);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!