Description
ColorSpec is not a function; it refers to
the three ways in which you specify color for MATLAB® graphics:
RGB triplet
Short name
Long name
The short names and long names are character vectors that specify
one of eight predefined colors. The RGB triplet is a three-element
row vector whose elements specify the intensities of the red, green,
and blue components of the color; the intensities must be in the range
[0 1]. The following table lists the predefined colors and their RGB
triplet equivalents.
RGB TripletShort
NameLong Name[1 1 0]yyellow
[1 0 1]mmagenta
[0 1 1]ccyan
[1 0 0]rred
[0 1 0]ggreen
[0 0 1]bblue
[1 1 1]wwhite
[0 0 0]kblack