GETRGB (v1.0)

Get RGB triplet of matlab color name
2.4K Downloads
Updated 4 Apr 2008

View License

GETRGB returns the RGB triplet for matlab color strings, like 'yellow' or 'm'.

getrgb('y') --> [1 1 0]

Version 1.0 (april 2008)

Cite As

Jos (10584) (2024). GETRGB (v1.0) (https://www.mathworks.com/matlabcentral/fileexchange/19461-getrgb-v1-0), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Images in Help Center and MATLAB Answers
Acknowledgements

Inspired by: str2rgb

Inspired: Convert between RGB and Color Names

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.0