subtract
Boolean subtraction operation on two shapes
Syntax
Description
subtract(
carves out the
intersecting region of the shape1,shape2
)shape2
and shape1
from shape1
using the subtract operation and plots the resultant
shape retaining the enclosed region of shape2
within
shape1
. Adjust the Transparency
property
of the shapes to view the retained individual shape portion in the resultant shape.
Alternatively, you can also use the '-'
operator to carve out a
shape from other shape (shape1 - shape2
).
subtract(
carves out the intersecting region of the shape1,shape2
,RetainShape=0)shape2
and
shape1
from shape1
and plots the resultant
shape while merging both shapes.
carves out the intersecting region of the c
= subtract(shape1,shape2
)shape2
and
shape1
from shape1
using the subtract
operation retaining the enclosed region of shape2
within
shape1
and returns a polygon object for resultant 2-D shape
or a custom 3-D object for resultant 3-D shape. Adjust the
Transparency
property of the shapes to view the retained
individual shape portion in the resultant shape. Alternatively, you can also use the
'-'
operator to perform the subtraction operation (c
= shape1 - shape2
).
carves out the intersecting region of the c
= subtract(shape1,shape2
,RetainShape=0)shape2
and
shape1
from shape1
while merging both the
shapes and returns a custom 3-D object for the resultant 3-D shape.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2017a