cell2mat

Syntax

Description

A = cell2mat(C) 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.

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).

Input Arguments

C — Input cell arraycell array

Input cell array, in which all cells contain the same data type. cell2mat
accepts numeric, logical, or character data within cells of C, or
structures with the same field names and data types. cell2mat does
not accept objects or nested cells within C.

Extended Capabilities

Tall ArraysCalculate with arrays that have more rows than fit in memory.

This function fully supports tall arrays. For
more information, see Tall Arrays.

Distributed ArraysPartition large arrays across the combined memory of your cluster using Parallel Computing Toolbox™.