How to match the values at two different columns in matlab

1 visualización (últimos 30 días)
I have some value like this
lon lat elevation
77.75 32.075 5826
77.75 31.775 5444
77.85 31.875 5406
77.6 32.125 5378
77.7 31.725 5353
77.65 31.875 5317
77.55 32.025 5271
77.65 32.075 5251
77.6 31.875 5233
77.5 31.925 5233
77.6 32.025 5205
And I have two different column of lon and lat where lon and lat are the same as previous but in different order
if true
% code
end
lon lat temperature
77.65 32.075 23
77.6 32.025 45
77.65 31.875 34
77.65 32.075 23
77.75 31.775
. . .
. . .
. . .
.
I want a table like this
lon lat elevation Temperature
77.75 32.075 5826 23
77.75 31.775 5444 45
77.85 31.875 5406 .
77.6 32.125 5378 .
77.7 31.725 5353
77.65 31.875 5317 .
77.55 32.025 5271 .
77.65 32.075 5251 .
77.6 31.875 5233 .
77.5 31.925 5233 .
77.6 32.025 5205 .
How to solve it? Can anyone help me?

Respuesta aceptada

the cyclist
the cyclist el 30 de Nov. de 2017
Editada: the cyclist el 30 de Nov. de 2017
If you can store the variables in a table, then you could use the join command.

Más respuestas (0)

Categorías

Más información sobre Structures en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by