I am trying to set up a table where each column variable is not just a single number per row but an array of numbers. Here is an example:
varNames = {'10:00','10:15','10:30','10:45','11:00',};varTypes = {'double','double','double','double','double'};sz = [5 5];T = table('Size',sz,'VariableTypes',varTypes,'VariableNames',varNames,'RowNames',varNames);What I would like is to have T{1,1} = [1 2 3];T{1,2} = [4 5 6];T{1,3} = [7 8 9];T{2,1} = [10 11 12];
etc.
When I try to populate it I get the following error:
T{1,1} = [1 2 3]The value on the right-hand side of the assignment has the wrong width. The assignment requires a value whose width is 1.
Best Answer