Center of mass or clusters
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi there!
If I have an NxM matrix and a number of clusters, how do I return a centroids point vector representing the averages (centers of mass) of the clusters?
댓글 수: 0
답변 (1개)
Image Analyst
2020년 4월 11일
It's returned by the kmeans() function as the second output argument:
[indexes, clusterCentroids] = kmeans(data, numberOfClusters);
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!