How can i connect dots with linear regression?

1 Ansicht (letzte 30 Tage)
Volkan Yangin
Volkan Yangin am 27 Okt. 2016
Beantwortet: Image Analyst am 27 Okt. 2016
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 Kommentar
Jos (10584)
Jos (10584) am 27 Okt. 2016
what does "connect dots with linear regression" mean?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 27 Okt. 2016
Just use polyfit() on each chunk of points. See attached polyfit demo.

Weitere Antworten (0)

Kategorien

Mehr zu Linear and Nonlinear 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!

Translated by