You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Cite As
Seth Kenner (2026). Colormap Dropdown Menu (https://uk.mathworks.com/matlabcentral/fileexchange/43659-colormap-dropdown-menu), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: rgbconv.m, MATLAB Plot Gallery - Colormap Chart
General Information
- Version 1.0.0.0 (2.16 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | A new version of the rgbconv.m function was updated and to handle certain cases. |
