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

Respuestas (1)

Peter Perkins
Peter Perkins el 27 de Feb. de 2013
Antonio, if you have access to the Statistics Toolbox, this sounds like a good use for the KMEANS function.
Hope this helps.

La pregunta está cerrada.

Etiquetas

Preguntada:

el 27 de Feb. de 2013

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by