I have a list of variables and its values which are of different datatypes (float32, uint32, int8 ....). Now I'm collecting them into a table:
T = [variable;variable2;variable3;variable4];
The variables in the tables are automatically casted to uint16. I would like to have the values in the original size. How can I say this to matlab when collecting the data to the table?
答案 0 :(得分:1)
您可以在matlab中使用table
。例如:
T = table(categorical({'M';'F';'M'}),[45;32;34],...
{'NY';'CA';'MA'},logical([1;0;0]),...
'VariableNames',{'Gender' 'Age' 'State' 'Vote'});