array2table
Convert homogeneous array to table.
📝Syntax
T = array2table(A)
📥Input Arguments
Parameter Description
A matrix: single, double, integer types, logical, char, string, struct, cell.
📤Output Arguments
Parameter Description
T Table object.
📄Description

T = array2table(A) converts an m-by-n array A into an m-by-n table, where each column of A becomes a variable in the resulting table T.

By default, array2table uses the name of the input array, combined with the column number, to create variable names in the table. If these names are not valid identifiers, it assigns default names of the form 'Var1', 'Var2', ... , 'VarN', where N is the number of columns in A.

💡Examples
A = magic(6);
T = array2table(A)
T = array2table(magic(6))
🔗See Also
table2arraytable
🕔Version History
Version Description
1.8.0 initial version
Edit this page on GitHub