ideas_colormap


Purpose

Get MATLAB RGB color designators from I-deas color codes.

Syntax

rgbmap = ideas_colormap(colors)

Description

 

IDEAS_COLORMAP returns a 3-column RGB vector based on COLORS. COLORS is either a numeric vector or a string or a cell array of strings. If COLORS is numeric, it should contain I-deas colors (i.e. 7 for green). If COLORS is a string or cell array of strings, it should contain a list of I-deas colors such as 'red' or 'light blue'. The number of rows in RGBMAP will equal the number of elements or strings in COLORS. Any user-defined colors (>15) or unmatched strings will return as black.

The color mapping for COLORS is as follows

Number Color
0 Black
1 Blue
2 Gray Blue
3 Light Blue
4 Cyan
5 Dark Olive
6 Dark Green
7 Green
8 Yellow
9 Golden Orange
10 Orange
11 Red
12 Magenta
13 Light Magenta
14 Pink
15 White

 

Examples

>> n=ideas_colormap([3 7 11])
n =
         0         0.6600    1.0000
         0         1.0000         0
         1.0000         0         0
>>