Main Content

color

Change drawing color of subsequent mask icon drawing commands

    Description

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

    example

    Examples

    collapse all

    Set the colors cyan and magenta in the mask icon of the subsystem.

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

    Input Arguments

    collapse all

    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.

    Data Types: char | string

    Version History

    Introduced in R2006b

    See Also

    |