Join multiple tables using Outerjoin in MATLAB

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일

0 개 추천

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

I am still looking for an alternative to avoid loop though.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Tables에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2020년 6월 28일

댓글:

2020년 6월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by