MATLAB: Create a table of one vector and a matrix

MATLABtable

I'm trying to make a table out of one vector (24×1) and a maxtrix (24×12), I want to have the vector in column one followed by the columns of the matrix.
Have tried the following expression but that gives me a table 24×2 and all the columns from the matrix land in column 2.
T=table(vector, matrix);
What to do?

Best Answer

Read about array2table
v = rand(10,1) ;
A = rand(10,10) ;
T=array2table([v, A]);