File Exchange

image thumbnail


version (1.42 KB) by CY Y
randcmap generates colormap with random order


Updated 19 Aug 2016

From GitHub

View license on GitHub

Generate a colormap of random order. For example, rjet = randmap(256, 'jet') generates a randomized jet colormap of 256 levels. Could be useful for image segmentation like the sample picture.
Supported colormap types are built-in MATLAB colormap types : 'parula', 'jet', 'hsv', 'hot', 'cool', 'spring', 'summer', 'autumn', 'winter', 'gray', 'bone', 'copper', 'pink', 'lines', 'colorcube', 'prism', 'flag', 'white' .

Cite As

CY Y (2021). randcmap (, GitHub. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!