Query regarding k-means clustering in MATLAB

前端 未结 2 486
-上瘾入骨i
-上瘾入骨i 2020-12-12 07:51

I have a very large amount of data in the form of matrix.I have already clustered it using k-means clustering in MATLAB R2013a. I want the exact coordinates of the centroid

2条回答
  •  再見小時候
    2020-12-12 08:41

    In MATLAB, use

    [idx,C] = kmeans(..) 
    

    instead of

    idx = kmeans(..) 
    

    As per the documentation:

    [idx,C] = kmeans(..) returns the k cluster centroid locations in the k-by-p matrix C.

提交回复
热议问题