Fitting multiple datasets simultaneously

6 ビュー (過去 30 日間)
Lizan
Lizan 2014 年 6 月 10 日
コメント済み: Lizan 2014 年 6 月 10 日
Hi,
I was wondering if there is a way do a linear fit on 2 datasets simultaneously? It seems like you can only do a linear fit on one dataset with the figure fitting function?

採用された回答

Image Analyst
Image Analyst 2014 年 6 月 10 日
I don't know what that function is. But why not just do it in code with the polyfit() function? Just stitch together the multiple x and y before passing in
coefficients = polyfit(multipleXs, multipleYs, 1);
  1 件のコメント
Lizan
Lizan 2014 年 6 月 10 日
Yes thanks.. I forgot about polyfit and polyval.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by