<< Direct computation with Table | Tables | cell2table >> |
T = array2table(A) |
matrix: single, double, integer types, logical, char, string, struct, cell.
Table object.
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.
A = magic(6);
T = array2table(A)
T = array2table(magic(6))
Version | Description |
---|---|
1.8.0 | initial version |
Allan CORNET