splitting data based on cluster indices
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello so I have customer data where I used kmeans clustering. It partitioned the data into 4 different clusters. If I have customer ids A = [1:1600] and the cluster indexes for each of theses 1600 customer ids. How can I separate the data so that I can view which customers are in each of the specific clusters.
0 Commenti
Risposte (1)
Walter Roberson
il 29 Nov 2016
results = cell(4,1);
for K = 1 : 4
results{K} = A( cluster_indices == K );
end
Vedere anche
Categorie
Scopri di più su Cluster Analysis and Anomaly Detection 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!