S = table2cell(T)
S = table2cell(T, "ToScalar", true)
| Parameter | Description |
|---|---|
| T | a table object |
| Parameter | Description |
|---|---|
| C | Cell array. |
C = table2cell(T) converts the tableT into a cell array C, where each variable inT is transformed into a column of cells in C.
The output C does not include any properties fromT.Properties.
If T contains row names, these will not be included inC.
S = ["Y";"Y";"N";"N";"N"];
A = [38;43;38;40;49];
B = [124 93;109 77; 125 83; 117 75; 122 80];
T = table(S, A, B, 'VariableNames',["Smoker" "Age" "BloodPressure"], 'RowNames',["Chang" "Brown" "Ruiz" "Lee" "Garcia"])
C = table2cell(T)
| Version | Description |
|---|---|
| 1.8.0 | initial version |