필터 지우기
필터 지우기

How can i connect dots with linear regression?

조회 수: 1 (최근 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 CenterFile Exchange에서 Linear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by