num2cell
Convert a numeric array to a cell array.
(c)=num2cell(a)
Inputs
a
Any numeric array.
Outputs
c
A cell array of the same size as the input, with its elements being the elements of the input.
Example
>>a=[2 3 4]
>>a
2 3 4
>>num2cell(a)
[2] [3] [4]