MATLAB: Convert double

MATLAB

Hi,
I have a matrix like A: A=[1;1;1;1;1;1] A is 6*1 double I need to transform this double type matrix to a cell type matrix like B: B=[1;1;1;1;1;1] B is 6*1 cell
I cannot find any function to do the following transformation but it must be easy.
Thansk for you help
Xavier

Best Answer

B = num2cell(A)
Related Question