Making a table in matlab
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Adnan
am 12 Feb. 2024
Kommentiert: Adnan
am 12 Feb. 2024
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 Kommentare
Akzeptierte Antwort
Austin M. Weber
am 12 Feb. 2024
% 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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Direct Search 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!