How to split data into different regions and then add trend line to each region

조회 수: 1 (최근 30일)
liv_ped
liv_ped 2019년 5월 15일
댓글: Adam Danz 2019년 5월 15일
Hi,
I have a set of data and I want to split in into three different parts and then add a trendline to the first two parts to calculate the slope of each part.
  댓글 수: 2
Kevin Phung
Kevin Phung 2019년 5월 15일
How do you determine where do you want to split the data? Are you familiar with array indexing?
I would suggest using polyfit() to plot the trendline:
Adam Danz
Adam Danz 2019년 5월 15일
Try k-means clustering if you're trying to pares your data into regions.
kmeans()

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by