How to split data into different regions and then add trend line to each region
1 次查看(过去 30 天)
显示 更早的评论
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
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
2019-5-15
Try k-means clustering if you're trying to pares your data into regions.
kmeans()
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!