how to create a table containing character and integer values in matlab????

Answers (1)

Isn't the example in the doc sufficient?
T = table(['M';'F';'M'],[45;32;34],...
{'NY';'CA';'MA'},logical([1;0;0]),...
'VariableNames',{'Gender' 'Age' 'State' 'Vote'})

Tags

No tags entered yet.

Asked:

on 5 Feb 2015

Commented:

on 5 Feb 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!