How to split data into different regions and then add trend line to each region
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Kevin Phung
il 15 Mag 2019
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
il 15 Mag 2019
Try k-means clustering if you're trying to pares your data into regions.
kmeans()
Risposte (0)
Vedere anche
Categorie
Scopri di più su Histograms in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!