Merging Tables from 3 other tables

조회 수: 1 (최근 30일)
Alana Mera
Alana Mera 2021년 10월 14일
편집: Kevin Holly 2021년 10월 14일
I'm trying to merge 3 different tables into one cohesive table, just not sure what code to use and how to format it. If anyone could help it would be great, the tables names I'm trying to add together are called "S1" "S2" and "S3"

답변 (1개)

Kevin Holly
Kevin Holly 2021년 10월 14일
편집: Kevin Holly 2021년 10월 14일
You can use join
S12 = join(S1,S2);
Sall= join(S12,S3)
You can also use Join Tables in the live editor.
If you don't want to remove any data, you could use outerjoin
S12 = outerjoin(S1,S2);
Sall= outerjoin(S12,S3)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by