table2array

Convert table to homogeneous array.

Syntax

  • A = table2array(T)

Input argument

  • T - table object.

Output argument

  • A - matrix: single, double, integer types, logical, char, string, struct, cell.

Description

A = table2array(T) converts the input table T into a homogeneous array A, where the variables in T become the columns of A.

The output A does not retain the table properties from T.Properties.

If T is a table with row names, these row names will not be included in A.

Example

A = magic(6);
T = array2table(A);
A = table2array(T)

See also

array2table, table.

History

VersionDescription

1.8.0

initial version

Author

Allan CORNET

Last updated