Be the first to rate this file! 12 Downloads (last 30 days) File Size: 1.84 KB File ID: #43659 Version: 1.0
image thumbnail

Colormap Dropdown Menu

by

 

Create a dropdown menu to select a colormap

| Watch this File

File Information
Description

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.

Acknowledgements

Rgbconv.M and Matlab Plot Gallery Colormap Chart inspired this file.

Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
Other requirements The File Exchange function "rgbconv.m" is required (http://www.mathworks.com/matlabcentral/fileexchange/4265-rgbconv-m)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
16 Jul 2015 Osvaldo Damian RAMIREZ PALACIOS

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));

Comment only
14 Jul 2015 Seth Kenner

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.

Comment only
11 Jul 2015 Osvaldo Damian RAMIREZ PALACIOS

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));

Comment only

Contact us