Regression line that includes x and y errors.
10 次查看(过去 30 天)
显示 更早的评论
Hi,
I have x and y data set, and each x and y variables have 5% and 10% uncertainty or error, respectively. How I should find a one regresion or best fit line (Best_y = mx + c) for such a dataset? Here is the dataset. Any thoughts? Thanks.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1300585/image.png)
0 个评论
采纳的回答
Matt J
2023-2-20
编辑:Matt J
2023-2-20
I would recommend linear2dFit() form this FEX download,
fitResult=linear2dFit([x,y]')
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!