how to create a table containing character and integer values in matlab????
Show older comments
how to create a table containing character and integer values in matlab????
Answers (1)
Guillaume
on 5 Feb 2015
T = table(['M';'F';'M'],[45;32;34],...
{'NY';'CA';'MA'},logical([1;0;0]),...
'VariableNames',{'Gender' 'Age' 'State' 'Vote'})
1 Comment
Youssef Khmou
on 5 Feb 2015
or use cell function
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!