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

Antworten (1)

Peter Perkins
Peter Perkins am 27 Feb. 2013

0 Stimmen

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

1 Kommentar

Does kmeans work with negative numbers?

Diese Frage ist geschlossen.

Tags

Gefragt:

am 27 Feb. 2013

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by