MATLAB: How to concatenate two columns in one table into one column

MATLABtable variable

Hi,
I have a table of 5 columns with strings, I would like to concatenate the two columns by a "_" and make them into one column.
Table A:
var1 var2 var3 var4 var5 ABC 123 aaa bbb ccc EFG 345 ddd eee fff into B: var1 ABC_123 EFG_345
How to do that?
Thanks.
Jennifer

Best Answer

Actually I did it with t.Var1 = strcat(t.Var1, '_', t.Var2)