Convert cell array to table
T = cell2table(C)
T = cell2table(C,Name,Value)
converts
the contents of an T
= cell2table(C
)m
-by-n
cell
array, C
, to an m
-by-n
table, T
.
Each variable in the table, T
, is numeric, with
a data type double
, or a cell array of character
vectors.
cell2table
uses the input array name appended
with the column number for the variable names in the table. If these
names are not valid MATLAB® identifiers, cell2table
uses
character vectors of the form 'Var1',...,'Var
where N
'N
is
the number of columns in C
.
creates
a table from a cell array, T
= cell2table(C
,Name,Value
)C
, with additional options
specified by one or more Name,Value
pair arguments.
For example, you can specify row names or variable names to include in the table.
array2table
| isvarname
| struct2table
| table
| table2cell