FUNCTION REFERENCE
cell2table
Table from the columns of a cell array.
Table from the columns of a cell array.
Syntax
T = cell2table(C)Syntax
T = cell2table(C, 'VariableNames', names, 'RowNames', rows)A column whose cells all hold numeric (or logical) scalars of one class becomes a column vector of that class; any other column stays a cell column. Names follow array2table.
Example
T = cell2table({'Ann', 31; 'Bob', 45}, 'VariableNames', {'Name', 'Age'}); T.Age % [31; 45]Differences from MATLAB: Columns of text, datetimes or mixed values stay cell columns.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.