Best linear fit to data with errors in both x and y

2 ビュー (過去 30 日間)
Songbo Zhang
Songbo Zhang 2015 年 10 月 8 日
回答済み: the cyclist 2015 年 10 月 8 日
I have data with errors in both x and y, just like :x,xerr,y,yerr;How can I fit them with the error. As the fit function only consider x and y.Is there any other function can do it?

回答 (1 件)

the cyclist
the cyclist 2015 年 10 月 8 日
There is one technique I know of called "Total Least Squares", that accounts for error in both the independent and dependent variables. I don't know of any built-in MATLAB functions that do this technique. I found this FEX submission, which is highly rated. You could try it.

カテゴリ

Help Center および File ExchangeCurve Fitting Toolbox についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by