Linear fit with data uncertainty
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Sean de Wolski
am 22 Jun. 2012
How about the additional outputs in regress? Or if you're on R2012a, LinearModel? (Both of these require the Statistics Toolbox)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Regression finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!