Create polygon on xy-plane
antenna.Polygon object to create a polygonal board
shape centered at the origin and on the xy-plane. You can use
antenna.Polygon to create single-layer or multi-layered antennas
polygon = antenna.Polygon creates a polygon shape
centered at the origin and on the xy-plane.
polygon = antenna.Polygon(Name=Value) creates a
polygon, with additional Properties using
one or more name-value arguments.
Name is the property
Value is the corresponding value. You can
specify several name-value arguments in any order as
NameN=ValueN. Properties that you do not specify
retain their default values.
Name — Name of polygon board shape
"mypolygon" (default) | string
Name of the polygon board shape, specified as a string.
Vertices — Cartesian coordinates of polygon vertices
3-by-3 matrix (default) | N-by-3 matrix
Cartesian coordinates of polygon vertices, specified as a N-by-3 matrix in meters where N is the number of points.
[-1 0 0; -0.5 0.2 0; 0 0 0]
|Boolean unite operation on two shapes|
|Boolean subtraction operation on two shapes|
|Intersection of shape1 and shape2|
|Join two shapes|
|Carve a shape from other shape|
|Boolean intersection operation on two shapes|
|Calculate area of 2-D shapes in square meters|
|Display antenna, array structures, shapes, or platform|
|Plot boundary of 2-D shape|
|Mesh properties of metal, dielectric antenna, or array structure|
|Rotate shape about axis by angle|
|Rotate shape about x-axis by angle|
|Rotate shape about y-axis by angle|
|Rotate shape about z-axis by angle|
|Move shape to new location|
|Change size of shape by fixed factor|
|Mirror shape along x-axis|
|Mirror shape along y-axis|
|Remove holes from shape|
|Remove sliver outliers from boundary of shape|
Create and Transform Polygon
Create a polygon using
antenna.Polygon with vertices at
[-1 0 0; -0.5 0.2 0; 0 0 0] and display it.
p = antenna.Polygon(Vertices=[-1 0 0; -0.5 0.2 0; 0 0 0])
p = Polygon with properties: Name: 'mypolygon' Vertices: [3x3 double]
show(p) axis equal
Mesh the polygon and display the meshed shape.
Move the polygon to a new location on the X-Y plane.
translate(p,[2,1,0]) axis equal
Introduced in R2017a