Repeated K-means clustering to create a tree diagram

3 views (last 30 days)
I have several time-series and I want to use the k-means function for a cluster analysis (distance = correlation).
1st step: I want to partition my sample into 2 clusters
2nd step: I want to partition each of my 2 clusters from step 1 into another 2 clusters
3rd step: I want to partition my 4 clusters from step 2 into another 8 clusters
4th step: ...
I’m doing this to create a tree diagram. Has anyone an idea how to realize this? My first idea failed due to the iterative property of the function.
Thank You!!!
  1 Comment
Christian Maschner
Christian Maschner on 28 Jan 2013
I found a way:
input = linkage(data','centroid','correlation')
figure()
dendrogram(input,'orientation','left')

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!