How can i connect dots with linear regression?

4 ビュー (過去 30 日間)
Volkan Yangin
Volkan Yangin 2016 年 10 月 27 日
回答済み: Image Analyst 2016 年 10 月 27 日
Hi everbody
I have a matrix consisting 511 data points and i should connect some points with linear regression, for ex: from 1 to 15, from 15 to 66, from 66 to 121 etc. New matrix must have same size with previous matrix.
How type a code can be written for this operation?
I think, i can use if commands but i haven't created a scenario.
  1 件のコメント
Jos (10584)
Jos (10584) 2016 年 10 月 27 日
what does "connect dots with linear regression" mean?

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

採用された回答

Image Analyst
Image Analyst 2016 年 10 月 27 日
Just use polyfit() on each chunk of points. See attached polyfit demo.

その他の回答 (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