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
Ben Mitch (2020). rgb.m (https://www.mathworks.com/matlabcentral/fileexchange/1805-rgb-m), MATLAB Central File Exchange. Retrieved .
Works nicely. Thanks!
Excellent function! Works wonderfully!
By coincidence, this function works with the rgbmap function described here: http://www.mathworks.com/matlabcentral/fileexchange/46874-rgbmap-color-maps/content/rgbmapdemo/html/rgbmap_demo.html
Thanks for writing this, I find it very handy and use it often when I write scripts to plot various measurement data.
in my matlab no found the sistem RGB and HSI,how install this sistem? what do i do?
This was very helpful!
Just what I needed - the Matlab color space is large but it only allows limited navigation. This tool helps find your way around the colors much easier.