How do I manipulate colormaps?
When you use a function that calls a colormap, the function assigns values in the matrix to certain values in the default colormap. The lowest value in your matrix is assigned to the first color in your colormap. There is a colormap command in MATLAB, which allows you to set your colormap to 10 different sets of colors. For example, colormap cool gives you shades of cyan and magenta while colormap jet gives you shades of blue. You can set a limit on your colors using the functions caxis , cmin , and cmax . These functions let you define the range of colors you will be using.