Skip to content

table2array

Convert a table to a matrix.

A = table2array(T)

Concatenates the variables of T horizontally into a single array. All variables must have compatible types and column counts.

T = table([1; 2], [3; 4]);
table2array(T) % [1 3; 2 4]
  • array2table — Convert a matrix to a table.
  • table — Create a table — a heterogeneous tabular data container.