MATLAB: How to separate the arrays when making a table

arraytable

I need to make table from two arrays.
One array is matrix of n*1 and the other array is n*5. When I make table the table size is n*2 and I want to be n*6.
Any thouhgt?
I use this command:
table=table(ttestnames,ttest_result_p);

Best Answer

Try this:
n = 5;
A = rand(n,1);
B = rand(n,5);
T = array2table([A, B])
That should do what you want.