Create polygon on X-Y plane
antenna.Polygon object to create a polygonal board
shape centered at the origin and on the X-Y plane. You can use
antenna.Polygon to create single-layer or multi-layered antennas
polygon = antenna.Polygon creates a polygonal board
shape centered at the origin and on the X-Y plane.
polygon = antenna.Polygon(Name=Value) sets properties
using one or more name-value arguments.
Name is the
property name and
Value is the corresponding value. You
can specify several name-value arguments in any order as
ValueN. Properties not
specified retain their default values.
Name — Name of polygon board shape
"mypolygon" (default) | string | character vector
Name of the polygon board shape, specified as a string or a character vector.
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 with each element measured in meters, N being 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|
|Boolean intersection operation on two shapes|
|Shape1 + Shape2|
|Shape1 - Shape2|
|Shape1 & Shape2|
|Calculate area of shape in square meters|
|Display antenna, array structures or shapes|
|Plot boundary of shape|
|Mesh properties of metal, dielectric antenna, or array structure|
|Rotate shape about axis and angle|
|Rotate shape about x-axis and angle|
|Rotate shape about y-axis and angle|
|Rotate shape about z-axis and angle|
|Move shape to new location|
|Change the size of the shape by a fixed amount|
|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