How to plot graph for kmeans?

I have data in array. Then I have applied kmeans algorithm on the data using id=kmeans(arr,3) where arr will consist of data points(36 rows and 9 columns) and 3 is the no of clusters. How to plot graph for kmeans?

回答(1 个)

Swarooph
Swarooph 2016-8-30

0 个投票

You could use the gscatter function. Note that this uses categorical variables which makes things easy.

类别

帮助中心File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

标签

提问:

anu
2016-8-30

编辑:

anu
2016-8-31

Community Treasure Hunt

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

Start Hunting!

Translated by