On Matlab Geeks, we have already covered basic two-dimensional plotting techniques. We would now like to start covering techniques for plotting three-dimensional data. One of the easiest and most visually pleasing ways of plotting three-dimensional data onto a 2-D surface is imagesc. Originally meant to be used with image data, this function is a great tool for plotting 2-D matrices. Imagesc is different from the image function in that the data is automatically scaled to fit the range of the colormap. This feature makes representing a matrix with imagesc is far easier than with image. We recommend using imagesc to plot data from a 2-D matrix. Continue reading
How to Use Imagesc in Matlab
2