k means clustering using k=4
显示 更早的评论
Perform K-means clustering on the mandrill image with K=4.
can someone please help me with code for this question, as I'm a begineer don't have much idea about how to proceed with this question.
采纳的回答
更多回答(1 个)
Walter Roberson
2021-3-29
The line that has
[idx,C] = kmeans(X,3);
would change to
[idx,C] = kmeans(X,4);
if you were clustering with four clusters.
类别
在 帮助中心 和 File Exchange 中查找有关 k-Means and k-Medoids Clustering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!