Create a table of one vector and a matrix

I'm trying to make a table out of one vector (24x1) and a maxtrix (24x12), 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 24x2 and all the columns from the matrix land in column 2.
T=table(vector, matrix);
What to do?

 Accepted Answer

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!