Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

patch

Draw color patch of specified shape on masked subsystem icon

Syntax

patch(x, y)
patch(x, y, [r g b])

Description

patch(x, y) creates a solid patch having the shape specified by the coordinate vectors x and y. The patch's color is the current foreground color.

patch(x, y, [r g b]) creates a solid patch of the color specified by the vector [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.

See Also

|

Introduced before R2006a

Was this topic helpful?