Create a table of one vector and a matrix

7 Ansichten (letzte 30 Tage)
Sofie Petersson
Sofie Petersson am 11 Dez. 2018
Kommentiert: Peter Perkins am 11 Dez. 2018
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?

Akzeptierte Antwort

KSSV
KSSV am 11 Dez. 2018
Read about array2table
v = rand(10,1) ;
A = rand(10,10) ;
T=array2table([v, A]);

Weitere Antworten (1)

madhan ravi
madhan ravi am 11 Dez. 2018
T=table([vector,matrix])

Community Treasure Hunt

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

Start Hunting!

Translated by