showColor

Display a colorswatch of the given RGB value
3 Downloads
Updated 18 Jan 2025

View License

A simple utility function to make working with colors easier, adding a method for quick visualization.
Pass in a 1x3 RGB color vector to generate a color swatch, a small image plot showing only that color.
Accepts floating point values in the range of 0 to 1 or numbers with integer value in the range 0 to 255.

Cite As

Robert Watson (2025). showColor (https://uk.mathworks.com/matlabcentral/fileexchange/179314-showcolor), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2024b
Compatible with R2019b and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0