% slice
x=repmat(1,10,10); X(:,:,1)=x;
for N=2:10; X(:,:,N)=x; end