MATLAB: How to draw evolution of concentration in 2D [solved]

concentrationplot2dshade

Hi all,
I have coded a small program in order to compute the evolution of concentration of a plume of smoke and would like to plot/shade it as follow (I did it with Ferret but would like to know how to do it with Matlab) :
My matrix is defined along x & z axis with concentration(x,z) defined as a sinusoidal function
Thanks for all,
Florian

Best Answer

Why not make save be a 3D array instead of a cell array? Why not just use imshow() or image() to display each 2D image of "save" right after you created it.