MATLAB: Join two tables with the same headers

join headerstables

I have two tables created from different sources that have the same headers that I would like to join together. Table one has 10 rows with Headers: A B C D
Table two has 11 rows with Headers: A B C D
I would like to make a combined table with all columns and 21 rows
What do I have to tell MatLab to make it do what I want it to do?

Best Answer

just vertically concatenate them:
newtable = [table1; table2]; %note the semicolon for vertical concatenation
%or
newtable = vertcat(table1, table2);