How to Show Result of Clustering?
1 view (last 30 days)
Show older comments
Hi, I have 1000 Articles and need to cluster them. After preprocessing, I used Kmeans(from Matlab) for clustering.
u can see Result(for 7 articles)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145771/image.jpeg)
i tried to compare it with hierarchical Clustering(such as : average,median,complete and .. ) but , the result of hierarchical Clustering can be show by clustergram and plots.(not table) So , i can't Undrestand Each article belongs to which cluster?
can I have similar table results ? i mean "Table result" (exactly like the attached picture).
i need to khonw Each article belongs to which cluster?
0 Comments
Answers (1)
Image Analyst
on 20 Oct 2014
"idx" is your classification. If you could do a bar plot or stem plot with each index of "idx" plotted in a different color depending on what class it is. kmeans is not really an adjustable classification like some other kinds, so you can't do dendrograms, etc. You just get the n clusters you requested and you kind of have to take what you get.
2 Comments
Image Analyst
on 20 Oct 2014
So make a table, say in GUIDE, and put a table control on it. Then in your code put the table (in your screenshot) into it with the following command
set(handles.uitable1, 'data', idx);
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!