Determination of data points in each cluster of K-means algorithm
2 次查看(过去 30 天)
显示 更早的评论
Hello,
How can I calculate the number of data points of each cluster of K-means ? I found the answer of counter in python, but donot know how to use such kind of commond in MATLAB. I am finding clusters using this code.
[idx,C]
=kmeans(score,3);
figure
gscatter(score(:,1),score(:,2),idx,'bgm')
hold on
plot(C(:,1),C(:,2),'kx', 'MarkerSize',25)
Br,
Haresh Kumar
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cluster Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!