COLD Black-Blue-Cyan-White Color Map
COLD(M) returns an M-by-3 matrix containing a "cold" colormap
COLD, by itself, is the same length as the current figure's colormap. If no figure exists, MATLAB creates one.
imagesc(0:360,-90:90,topo), axis xy
Great code. I also found that this code works;
cmap = colormap(1-hot);
cmap(1,:) = [1 1 1]; %Pure white
I like your submission. Simple, well written code. Your example inspired me to make a similar one for my Perceptually improved colormaps submission.
You might add a see also for cool, an existing colormap with a slightly different shape in terms of colors.
Regardless, this adds another colormap option. As always, the help is what I'd expect.
Added "cool" to the "See also" section, as suggested.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.