cluster plotting in matlab
2 次查看(过去 30 天)
显示 更早的评论
I attached data file of n*4 size. I used
[idx,C] = kmeans(X,3)
for clustering and obtain idx as cluster index and C as centroid, but I want to plot which shows these three clusters. how to do it.
0 个评论
回答(1 个)
the cyclist
2016-12-19
The documentation for kmeans gives several examples of plotting the output (including the code to do so).
2 个评论
the cyclist
2016-12-19
It is of course not possible to plot four spatial dimensions. The main alternatives would all involve plotting some projection of your data onto a smaller number of dimensions. Possibilities are
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cluster Analysis and Anomaly Detection 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!