You can specify the colormap to be used in the figure with the colormap
function. A colormap is just a three-column matrix with values between 0
and 1
representing R,G,B components, so you can create it manually. For example, to produce a simple colormap from blue to white:
N = 256; % number of colors
cmap = [linspace(1,0,N).' linspace(1,0,N).' ones(N,1)]; % decreasing R and G; B = 1
colormap(cmap)

However, this colormap is not perceptually uniform, that is, the perceived "color difference" is not uniform across the full color range. To generate a perceptually uniform colormap from blue to white I suggest the user-contributed BrewerMap
function with the 'Blues'
option:
N = 256; % number of colors
cmap = brewermap(N, 'Blues');
colormap(cmap)
