How to group points (xy coordinates)
2 views (last 30 days)
Show older comments
Hi, I'm using kmeans to group a random number of points in a xy axis.
Is there any way of doing it but limiting the number of points per group. I mean, if I want 2 groups of points but in my xy axis I have like 100 points close to each other and another 20 points far away from the other 100 points. If I run kmeans function, it will probably join the 100 points and the 20 points in two different groups and I would like to limit the number of points, for example, by 80.
Is it possible to do?
Thank you very much
0 Comments
Answers (0)
See Also
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!