Help me about creating table in matlab ?

1 Ansicht (letzte 30 Tage)
Nguyen Trong Nhan
Nguyen Trong Nhan am 14 Nov. 2014
Beantwortet: Guillaume am 14 Nov. 2014
I have 3 vector. x = [1;2;3;4;5]; z = [1.2;2.4;3.4;5.0;4.1], y = [12;11;24;18;20]. And I want to create a table from that vectors like the picture. How do I do it? thanks very much

Antworten (2)

MA
MA am 14 Nov. 2014
format short g
x = [1;2;3;4;5];
y = [12;11;24;18;20];
z = [1.2;2.4;3.4;5.0;4.1];
A=[x y z];
disp(' order code score')
disp(A)

Guillaume
Guillaume am 14 Nov. 2014
t = table(x, y, z, 'VariableNames', {'Order', 'Code', 'Score'})

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by