ColorSpec (Color Specification)
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.