Create a table of one vector and a matrix
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
0 Kommentare
Akzeptierte Antwort
KSSV
am 11 Dez. 2018
Read about array2table
v = rand(10,1) ;
A = rand(10,10) ;
T=array2table([v, A]);
1 Kommentar
Peter Perkins
am 11 Dez. 2018
Another similar sol'n:
T = [table(v) array2table(A)]
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu LaTeX finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!