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) (2026). GETRGB (v1.0) (https://uk.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 LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
