Azzera filtri
Azzera filtri

How to match the values at two different columns in matlab

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Tables in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by