How to match the values at two different columns in matlab

2 views (last 30 days)
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?

Accepted Answer

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

More Answers (0)

Categories

Find more on Tables in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!