3D matrix of the same slice



Hello

Can anyone tell me how to stalk one slice into a 3D matrix.
Consider the following:

A=244X306X1 which when viewed imagesc(A(:,:,1)) represents
one slice.
B=244X30X2
C=244X306X3
......
Now :,:,1 or 2 or 3,...20 are the same slice. So basically
just repeating them. What I want is to construct a matrix
such that the final=244X306X20 where the last term 20
represents the same slice such that I have a stalk of the
same slice.

Hope that makes sense.

Zeinab
.