patch
Draw color patch of specified shape on masked subsystem icon
Syntax
patch(x
,y
) patch(x
,y
, [r
g
b
])
Description
patch(
creates
a solid patch having the shape specified by the coordinate vectors x
, y
)x
and y
.
The patch's color is the current foreground color.
patch(
creates
a solid patch of the color specified by the vector x
, y
,
[r
g
b
])[r g b]
,
where r
is the red component, g
the
green, and b
the blue. For example,
patch([0 .5 1], [0 1 0], [1 0 0])
creates a red triangle on the mask's icon.
Examples
The command
patch([0 .5 1], [0 1 0], [1 0 0])
creates a red triangle on the mask's icon.
Version History
Introduced before R2006a