Generate a 4-by-3-by-2 numeric array, and then create a 1-by-3-by-2 cell array of 4-by-1 column vectors.

A = reshape(1:12,4,3);
A(:,:,2) = A*10
C = num2cell(A,1)

A(:,:,1) =
1 5 9
2 6 10
3 7 11
4 8 12
A(:,:,2) =
10 50 90
20 60 100
30 70 110
40 80 120
C(:,:,1) =
[4x1 double] [4x1 double] [4x1 double]
C(:,:,2) =
[4x1 double] [4x1 double] [4x1 double]

Each 4-by-1 vector contains elements from along the *first* dimension of `A`:

C{1}

ans =
1
2
3
4

Create a 4-by-1-by-2 cell array of 1-by-3 numeric arrays.

C = num2cell(A,2)

C(:,:,1) =
[1x3 double]
[1x3 double]
[1x3 double]
[1x3 double]
C(:,:,2) =
[1x3 double]
[1x3 double]
[1x3 double]
[1x3 double]

Each 1-by-3 row vector contains elements from along the *second* dimension of `A`:

C{1}

ans =
1 5 9

Finally, create a 4-by-3 cell array of 1-by-1-by-2 numeric arrays.

C = num2cell(A,3)

C =
[1x1x2 double] [1x1x2 double] [1x1x2 double]
[1x1x2 double] [1x1x2 double] [1x1x2 double]
[1x1x2 double] [1x1x2 double] [1x1x2 double]
[1x1x2 double] [1x1x2 double] [1x1x2 double]

Each 1-by-1-by-2 vector contains elements from along the *third* dimension of `A`:

C{1}

ans(:,:,1) =
1
ans(:,:,2) =
10