MATLAB Answers


This question is closed. Reopen it to edit or answer.

Is there an clustering algorithm with which I can declare expected centroid in advance?

1 view (last 30 days)
Abhishek H P
Abhishek H P on 3 Jan 2017
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi Friends,
I need to Cluster a dataset by declaring the centroids before starting a cluster itself. For eg:
Dataset includes {A,B,C,D,E,F}
I want to know the nearby values to B data Point. So Please let me know if there

Answers (1)

Massimo Zanetti
Massimo Zanetti on 3 Jan 2017
The k-means clustering is what you need. You can start the algorithm by selecting your own initial centroids by setting the parameter 'Start' to a matrix in which rows are your centroids.
Read carefully the documentation.

Community Treasure Hunt

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

Start Hunting!

Translated by