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!