k mean clustering output with centre and solution space

3 次查看(过去 30 天)
Give matlab code to find k-means clustering on any numerical dataset. Output should have clustering diagram, and give cen as centre value which is (Kx1) vector and x is the solution space which is (NxK) matrix

回答(1 个)

Image Analyst
Image Analyst 2018-3-24
Just call kmeans() like the examples in the help show you. For what it's worth, I attach another example of kmeans() to do gray level segmentation

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by