cluster plotting in matlab
Mostrar comentarios más antiguos
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.
Respuestas (1)
the cyclist
el 19 de Dic. de 2016
0 votos
The documentation for kmeans gives several examples of plotting the output (including the code to do so).
2 comentarios
Jay Hanuman
el 19 de Dic. de 2016
the cyclist
el 19 de Dic. de 2016
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
Categorías
Más información sobre k-Means and k-Medoids Clustering en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!