Convert table to homogeneous array
table2array
horizontally concatenates
the variables in T
to create A
.
If the variables in T
are cell arrays, table2array
does
not concatenate their contents, and A
is a cell
array, equivalent to table2cell(T)
. To create an
array containing the contents of variables that are all cell arrays,
use cell2mat(table2cell(T))
.
table2array(T)
is equivalent to T{:,:}
.
If T
contains variables with different data
types that are compatible for horizontal concatenation, table2array
creates
a homogeneous array, A
, of the dominant data type.
For example, if T
contains double
and single
numeric
data, table2array(T)
returns an array with data
type single
.