Help me about creating table in matlab ?

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

답변 (2개)

MA
MA 2014년 11월 14일

0 개 추천

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 2014년 11월 14일

0 개 추천

t = table(x, y, z, 'VariableNames', {'Order', 'Code', 'Score'})

카테고리

도움말 센터File Exchange에서 Tables에 대해 자세히 알아보기

제품

태그

질문:

2014년 11월 14일

답변:

2014년 11월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by