Join multiple tables using Outerjoin in MATLAB

9 ビュー (過去 30 日間)
Nikita Agrawal
Nikita Agrawal 2020 年 6 月 28 日
コメント済み: Nikita Agrawal 2020 年 6 月 29 日
Hi,
I have 300 tables that I have stored over a loop, now I want to join them outside the loop.
I have the following:
T{1} = mytable_1;
T{2} = mytable_2;
T{3} = mytable_3;
.
.
.
.
T{300} = mytable_300;
I want to merge these tables:
T_bigtable = outerjoin(xxxx,'Mergekeys',true)

採用された回答

Kawin Kumaran
Kawin Kumaran 2020 年 6 月 29 日
Outerjoin can be nested in a for loop .Please follow the example code :
T_bigtable = T{1};
for k = 2:300
T_bigtable = outerjoin(T_bigtable, T{k});
end
  1 件のコメント
Nikita Agrawal
Nikita Agrawal 2020 年 6 月 29 日
I am still looking for an alternative to avoid loop though.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by