MATLAB: Adding new columns in a Table

adding new columnstable

I think this should be quite simple, but somehow I couldn't find the solution online.
I have two Tables, eg: Table1 and Table2. How to add let say two columns from Table 2 to Table 1.
I have tried this, but it does not work as the two input must be in a table form.
T1 = [T1 T2.ColumnA T2.ColumnB]

Best Answer

T1 = [T1, T2(:,{'ColumnA', 'ColumnB'})]
Note: this is only permitted if T1 does not already have variables with the same name.