color

Change drawing color of subsequent mask icon drawing commands

Syntax

color(colorstr)

Description

color(colorstr) sets the drawing color of all subsequent mask drawing commands to the color specified by the string colorstr.

colorstr must be one of the following supported color strings.

blue
green
red
cyan
magenta
yellow
black

Entering any other string or specifying the color using RGB values results in a warning at the MATLAB® command prompt; Simulink® ignores the color change. The specified drawing color does not influence the color used by the patch or image drawing commands.

Examples

The following commands

color('cyan');
droots([-1], [-2 -3], 4)
color('magenta')
port_label('input',1,'in')
port_label('output',1,'out')

draw the following mask icon.

See Also

|

Was this topic helpful?