T = array2table(A)
| Parameter | Description |
|---|---|
| A | matrix: single, double, integer types, logical, char, string, struct, cell. |
| Parameter | Description |
|---|---|
| T | Table object. |
T = array2table(A) converts an m-by-n arrayA into an m-by-n table, where each column ofA 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', whereN is the number of columns in A.
A = magic(6);
T = array2table(A)
T = array2table(magic(6))
| Version | Description |
|---|---|
| 1.8.0 | initial version |