MATLAB: Transposing the contents of the cell

MATLABtranspose

hi, I have a 3×1 cell array that contains the following cells:
[1x2 double]
[1x2 double]
[1x2 double]
how can I transpose the contents of the cell to the main cell array is as follows:
[2x1 double]
[2x1 double]
[2x1 double]
any help would be appreciated!

Best Answer

Let C be your cell. You can do the following:
C = cellfun(@transpose,C,'un',0);