Making a table in matlab
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Austin M. Weber
le 12 Fév 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
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Direct Search dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!