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 LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
