Matching xy coordinates from different tables

I am trying to match xy coordinates from two different tables. Some of the coordinates are not exact, what can I do in my code to get the closest matching xy coordinates?

3 comentarios

James Browne
James Browne el 15 de Jun. de 2019
Can you give a saple of two tables, with x and y coordinates identified? It would be really hard to even start writing a solution without knowing what the data looks like and what the result should be...do you want the indices of matching coordinates? Arranged in vectors or a matrix or printed to the command terminal or saved to a file or ....?
Image Analyst
Image Analyst el 15 de Jun. de 2019
You can try pdist2() to get the distances of every point to every other point. Then just look for ones where the distance is less than some threshold you specify. Attach your table data in a .mat file if you need any more help.
Keturah Palma
Keturah Palma el 17 de Jun. de 2019
I dont have a lot in my code so far

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Etiquetas

Preguntada:

el 14 de Jun. de 2019

Comentada:

el 17 de Jun. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by