Convert cell array to table
converts the contents of anT
= cell2table(C
)m
-by-n
cell array,C
, to anm
-by-n
table,T
. Each column ofC
provides the data contained in a variable ofT
.
To create variable names in the output table,cell2table
appends column numbers to the input array name. If the input array has no name, thencell2table
creates variable names of the form'Var1',...,'Var
, whereN
'
is the number of columns inN
C
.
creates a table from a cell array,T
= cell2table(C
,Name,Value
)C
, with additional options specified by one or moreName,Value
pair arguments.
For example, you can specify row names or variable names to include in the table.