How to match the values at two different columns in matlab

1 回表示 (過去 30 日間)
Tanmoyee Bhattacharya
Tanmoyee Bhattacharya 2017 年 11 月 30 日
コメント済み: Andrei Bobrov 2017 年 11 月 30 日
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?
  1 件のコメント
Andrei Bobrov
Andrei Bobrov 2017 年 11 月 30 日
please attach small part of your data as mat file.

サインインしてコメントする。

採用された回答

the cyclist
the cyclist 2017 年 11 月 30 日
編集済み: the cyclist 2017 年 11 月 30 日
If you can store the variables in a table, then you could use the join command.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by