How can i find distance between x and y each being 500 numbers.

My x and y are 500 numbers in x and 500 numbers in y.So we have 500 scatter points... i want to find the distance between those points and instead of having 500 points i will have 5-6 big points that will reprisent that some number of points are on the same area because of the distance limit that i will set.. Any suggestions ?? Thank you in advance

Answers (1)

Antonio, if you have access to the Statistics Toolbox, this sounds like a good use for the KMEANS function.
Hope this helps.

This question is closed.

Tags

Asked:

on 27 Feb 2013

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!