subtract
Description
calculates the geometric difference of the specified point, line, or polygon shapes by
comparing the shapes in shapeout
= subtract(shape1
,shape2
)shape1
to the shapes in
shape2
. The function calculates element-wise differences.
When you specify point shapes, the difference is a point shape that contains the points in
shape1
that are not inshape2
.When you specify line shapes, the difference is a line shape that contains the line parts in
shape1
that are not inshape2
.When you specify polygon shapes, the difference is a polygon shape that contains the polygon regions in
shape1
that are not inshape2
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2025a