Matching the two columns of two different tables and to combine the common values in second table.
7 ビュー (過去 30 日間)
古いコメントを表示
I want to match two columns of different tables. One table has one column with a "station code" and other bale has 5 columns in which the first column has "station code". I want to print the final result with 5 column table with single and commmon station code.
Thank you.
0 件のコメント
採用された回答
Kevin Holly
2022 年 8 月 18 日
編集済み: Kevin Holly
2022 年 8 月 18 日
3 件のコメント
Kevin Holly
2022 年 8 月 18 日
t=table;
t.Column1 = rand(10,1);
t.station = {'Code1';'Code2';'Code3';'Code4';'Code5';'Code6';'Code7';'Code8';'Code9';'Code10'}
t2=table;
t2.station = {'Code1';'Code3';'Code4';'Code6';'Code7'};
t2.Column2 = rand(5,1);
t2.Column3 = rand(5,1);
t2.Column4 = rand(5,1);
t2.Column5 = rand(5,1)
t4 = innerjoin(t,t2)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!