To add two tables in Matlab, you can use "vertcat" or "horzcat" function based on whether you want to concatenate the tables vertically or horizontally.
Syntax for "vertcat" function is:
main.m36 chars2 lines
Syntax for "horzcat" function is:
main.m36 chars2 lines
Here, Table1 and Table2 are the tables that you want to concatenate.
For example, let's say you have two tables T1 and T2 with the same number of columns and want to vertically concatenate them:
main.m117 chars5 lines
This will result in the following table:
main.m116 chars5 lines
Similarly, for horizontal concatenation, you can use 'horzcat' function.
gistlibby LogSnag