Code covered by the BSD License  

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Modified CMRmap

5.0 | 1 rating Rate this file 19 Downloads (last 30 days) File Size: 1.82 KB File ID: #39552 Version: 1.0
image thumbnail

Modified CMRmap



Produces a colour colormap, of arbitrary length, that is monochrome-compatible.

| Watch this File

File Information

Create a monochrome-compatible colour map

cmap = CMRmap
cmap = CMRmap(M)

cmap = CMRmap returns a colour map CMAP (varying black - purple - red - yellow - white) that is monochrome-compatible, i.e. it produces a monotonic greyscale colour map. CMAP is size Mx3, where M is the length of the current figure's colormap. If no figure exists, MATLAB creates one.

cmap = CMRmap(M) sets the colormap length to M.

The map is a slight modification to that suggested in [1].


axis image;


[1] Rappaport, C. 2002: "A Color Map for Effective Black-and-White Rendering of Color Scale Images", IEEE Antenna's and Propagation Magazine, Vol.44, No.3, pp.94-96 (June).


Cm Rmap.M inspired this file.

This file inspired Cmocean Perceptually Uniform Colormaps, Jetwhite(Colours), and Squink(Colors).

Required Products MATLAB
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
13 Jun 2013 Joao Henriques

Joao Henriques (view profile)


Contact us