data=rand([5, 10, 10]);
for i=1:10
    data(3,i,i)=10;
end

for frameCount = 1:10
        imagesc(data(:,:,frameCount)); colormap(gray(256));
        pause(0.3);
    end