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 Center および File ExchangeHistograms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by