File Exchange

image thumbnail

Colormap Dropdown Menu

version 1.0 (1.84 KB) by

Create a dropdown menu to select a colormap

4 Downloads

Updated

View License

This is an example of a way to create a dropdown menu to select a colormap in a GUI figure.

The colorbars are displayed in the dropdown menu next to the colormap name using HTML.

Comments and Ratings (3)

Seth Kenner
good afternoon , I get this error with the transposed operator are the original files , you wish you could help me fix greetings

>> createColormapDropdown
Error using reshape
To RESHAPE the number of elements must not change.

Error in rgbconv (line 68)
out=reshape(out',1,6);

Error in createColormapDropdown (line 35)
HEX = rgbconv(cData(j,1),cData(j,2),cData(j,3));

Osvaldo,

In my version of the "rgbconv" function, line 68 should be this:

out = reshape(out',1,6);

Your version appears to be missing the transpose operator on the "out" variable.

Hello to run the program I get an error help

>> createColormapDropdown
Error using reshape
To RESHAPE the number of elements must not change.

Error in rgbconv (line 68)
out=reshape(out,1,6);

Error in createColormapDropdown (line 37)
HEX = rgbconv(cData(j,1),cData(j,2),cData(j,3));

MATLAB Release
MATLAB 8.1 (R2013a)
Acknowledgements

Inspired by: rgbconv.m, MATLAB Plot Gallery - Colormap Chart

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

» Watch video