Joining 2 tables to make 1 table
Ältere Kommentare anzeigen
Hello,
I have 2 tables. I want to join these tables together to make 1 table.
They have the same number of columns.


What code should I use to joint them?
Thank you.
2 Kommentare
Jesus Sanchez
am 14 Dez. 2019
Akzeptierte Antwort
Weitere Antworten (1)
Guillaume
am 14 Dez. 2019
Sounds like you merely want to vertically concatenate your two tables. The only problem is that they don't have the same variable names, so you'll have to rename the variables of one of them:
table_old.Properties.VariableNames = table_new.Properties.VariableNames; %rename variables in old table. Could do it the other way round
merged = [table_old; table_new]
Kategorien
Mehr zu Tables finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!