Convert cell array to ordinary array of the underlying data type
A = cell2mat(
converts
a cell array into an ordinary array. The elements of the cell array
must all contain the same data type, and the resulting array is of
that data type.C
)
The contents of C
must support concatenation
into an N-dimensional rectangle. Otherwise, the results are undefined.
For example, the contents of cells in the same column must have the
same number of columns, although they need not have the same number
of rows (see figure).
cell
| cell2struct
| cell2table
| iscell
| mat2cell
| num2cell
| struct2cell
| table2cell