| << namedargs2cell | Data structures | orderfields >> |
| C = num2cell(A) |
| C = num2cell(A, dim) |
any type of multidimensional array.
positive integer value or positive vector of integers.
a cell array.
num2cell function converts a numeric array into a cell array, where each element of the numeric array is placed in its own cell in the resulting cell array.
If A is a character array, num2cell will convert each row of the array into a separate cell in the resulting cell array.
A = [1 2; 3 4; 5 6];
C = num2cell(A)
C = num2cell(A, 1)
C = num2cell(A, 2)
cell.
| Version | Description |
|---|---|
| 1.0.0 | initial version |
Allan CORNET