You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
rgb(col) returns a Matlab RGB colour triplet [R G B] converted from 'col'.
'col' can be:
an [R G B] triplet (unchanged)
a colour name, e.g. 'pale orange'
a matlab colour char (k,r,...)
a QBASIC colour code (0-15)
a DWORD colour code (0-0xFFFFFF)
a DWORD BGR colour code
Cite As
Ben Mitch (2026). rgb.m (https://se.mathworks.com/matlabcentral/fileexchange/1805-rgb-m), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Explore - Scientific Workflow Management Tool, Convert between RGB and Color Names, PeterRochford/SkillMetricsToolbox, Hyperplot Tools
General Information
- Version 1.0.0.0 (3.71 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
