Making a table in matlab
조회 수: 3 (최근 30일)
이전 댓글 표시
I have three vectors in 1x9 form and i am trying to make a table with them but when I do it, it displays 1x9 double
댓글 수: 0
채택된 답변
Austin M. Weber
2024년 2월 12일
% Example
vector1 = [1 2 3 4 5 6 7 8 9];
vector2 = [1 2 3 4 5 6 7 8 9];
vector3 = [1 2 3 4 5 6 7 8 9];
% Combine into an array
array = [vector1; vector2; vector3];
% Convert to table
table = array2table(array);
% Give the columns names
variable_names = {'Var1','Var2','Var3','Var4','Var5','Var6','Var7','Var8','Var9'};
table.Properties.VariableNames = variable_names
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Direct Search에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!