12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ColorSpecPurpose2ColorSpecspecificationDescriptionColorSpec is not a command; it refers to the three ways in which you specifycolor in <strong>MATLAB</strong>:• RGB triple• Short name• Long nameThe short names and long names are <strong>MATLAB</strong> strings that specify one of eightpredefined colors. The RGB triple is a three-element row vector whoseelements specify the intensities of the red, green, and blue components of thecolor; the intensities must be in the range [0 1]. The following table lists thepredefined colors and their RGB equivalents.RGB Value Short Name Long Name[1 1 0] y yellow[1 0 1] m magenta[0 1 1] c cyan[1 0 0] r red[0 1 0] g green[0 0 1] b blue[1 1 1] w white[0 0 0] k blackRemarksThe eight predefined colors and any colors you specify as RGB values are notpart of a figure’s colormap, nor are they affected by changes to the figure’scolormap. They are referred to as fixed colors, as opposed to colormap colors.2-89

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!