Regression line that includes x and y errors.
조회 수: 7 (최근 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.

댓글 수: 0
채택된 답변
Matt J
2023년 2월 20일
편집: Matt J
2023년 2월 20일
I would recommend linear2dFit() form this FEX download,
fitResult=linear2dFit([x,y]')
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!