how to make clustering based on distance?

3 views (last 30 days)
hi, i am working on clustering in matlab. firstly, i need to calculate the distance between the cluster head and other random points. then, when i calculated their distance, i will have to cluster them base on the minimum distance.
for example, my cluster head is (10,20) and (16,24), and other random points such as (12,18),(15,15), (13,20) and (14,22). then i will have to calculate the distance between the cluster head and the other random points, and do clustering based on the minimum distance obtained between cluster head and the random points. how should i make the code to determine that it should belong to that cluster?

Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!