Linear fit with data uncertainty
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi
Fitting a polynomial in Matlab to some data (x, y) is easy using polyfit as e.g.
p_RvsT = polyfit(r_vs_t(:, 1), r_vs_t(:, 2), 1);
However, say that my y-data has some error assigned to it. I have searched the forum, but I can't find information on how to include the errors in the y-data. I would be very happy to be pointed in the correct direction.
Best, Niles.
댓글 수: 0
답변 (1개)
Sean de Wolski
2012년 6월 22일
How about the additional outputs in regress? Or if you're on R2012a, LinearModel? (Both of these require the Statistics Toolbox)
댓글 수: 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!