Main Content


Create polygon on X-Y plane


Use the 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 multilayered antennas using pcbStack.



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 pair. For example, polygon = antenna.Polygon('Name','mypolygonboard') creates a polygon board shape of the name 'mypolygonboard'. Enclose each property name in quotes.


expand all

Name of the polygon board shape, specified a character vector or string.

Example: 'Name','Polygon1'

Example: polygon.Name = 'Polygon1'

Data Types: char | string

Cartesian coordinates of polygon vertices, specified as a N-by-3 matrix with each element measured in meters, N being the number of points.

Example: 'Vertices',[-1 0 0;-0.5 0.2 0;0 0 0]

Example: polygon.Vertices = [-1 0 0;-0.5 0.2 0;0 0 0]

Data Types: double

Object Functions

addBoolean unite operation on two shapes
areaCalculate area of shape in square meters
subtractBoolean subtraction operation on two shapes
intersectBoolean intersection operation on two shapes
rotateRotate shape about axis and angle
rotateXRotate shape about X-axis and angle
rotateYRotate shape about Y-axis and angle
rotateZRotate shape about Z-axis and angle
translateMove shape to new location
showDisplay antenna or array structure; display shape as filled patch
meshMesh properties of metal or dielectric antenna or array structure
removeHolesRemove holes from shape
removeSliversRemove sliver outliers from boundary of shape


collapse all

Create a polygon using antenna.Polygon with vertices at [-1 0 0;-0.5 0.2 0;0 0 0] and view 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]

axis equal

Mesh the polygon and view it.


Move the polygon to a new location on the X-Y plane.

axis equal

Introduced in R2017a