how to create a table containing character and integer values in matlab????
Afficher commentaires plus anciens
how to create a table containing character and integer values in matlab????
Réponses (1)
Guillaume
le 5 Fév 2015
T = table(['M';'F';'M'],[45;32;34],...
{'NY';'CA';'MA'},logical([1;0;0]),...
'VariableNames',{'Gender' 'Age' 'State' 'Vote'})
1 commentaire
Youssef Khmou
le 5 Fév 2015
or use cell function
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!