name2rgbreturns the RGB values of a named colorSyntaxrgb=name2rgb(name)Argumentsnamename of the color, or matrix with names of the colors (case insensitive).rgbvector or matrix with 3 columns of RGB integer values of the colors.Descriptionname2rgb returns the RGB values of a color given by its literal name.
The result is
a vector or a matrix with 3 columns [r,g,b] where r,
g and b are integers between 0 and 255
corresponding to colors components red, green and blue. As usual 0 means no intensity and
255 means all the intensity of the color.
If no color is found [] is returned.
The list of all known colors is given by color_list.
ExamplesSee also
color
color_list
rgb2name
History6.0.0
Function name2rgb can now handle a single string and a matrix of strings.