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!