GETRGB (v1.0)

Get RGB triplet of matlab color name

You are now following this Submission

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://au.mathworks.com/matlabcentral/fileexchange/19461-getrgb-v1-0), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: str2rgb

Inspired: Convert between RGB and Color Names

Categories

Find more on Images in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0