Code covered by the BSD License  

Highlights from
Cold Colormap

5.0

5.0 | 2 ratings Rate this file 10 Downloads (last 30 days) File Size: 1.41 KB File ID: #23865
image thumbnail

Cold Colormap

by Joseph Kirk

 

22 Apr 2009 (Updated 29 Apr 2009)

Creates a COLD colormap that complements the built-in HOT colormap

| Watch this File

File Information
Description

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.
 
Example:
 imagesc(peaks(500))
 colormap(cold); colorbar
 
Example:
 load topo
 imagesc(0:360,-90:90,topo), axis xy
 colormap(cold); colorbar

Acknowledgements
This submission has inspired the following:
real2rgb & colormaps, Perceptually improved colormaps
MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
22 Apr 2009 John D'Errico

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.

15 Oct 2010 Matteo Niccoli

I like your submission. Simple, well written code. Your example inspired me to make a similar one for my Perceptually improved colormaps submission.

Please login to add a comment or rating.
Updates
29 Apr 2009

Added "cool" to the "See also" section, as suggested.

Tag Activity for this File
Tag Applied By Date/Time
colormap Joseph Kirk 22 Apr 2009 14:20:58
hot Joseph Kirk 22 Apr 2009 14:20:59
cold Joseph Kirk 22 Apr 2009 14:20:59
map Joseph Kirk 22 Apr 2009 14:20:59
color Joseph Kirk 22 Apr 2009 14:20:59
cool John D'Errico 22 Apr 2009 17:18:52

Contact us at files@mathworks.com