Main Content

antenna.Polygon

Create polygon on X-Y plane

Description

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 multi-layered antennas using pcbStack.

Creation

Description

polygon = antenna.Polygon creates a polygonal board shape centered at the origin and on the X-Y plane.

example

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 Name1= Value1, ..., NameN=ValueN. Properties not specified retain their default values.

Properties

expand all

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

Example: "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: [-1 0 0; -0.5 0.2 0; 0 0 0]

Data Types: double

Object Functions

addBoolean unite operation on two shapes
subtractBoolean subtraction operation on two shapes
intersectBoolean intersection operation on two shapes
plusShape1 + Shape2
minusShape1 - Shape2
andShape1 & Shape2
areaCalculate area of shape in square meters
showDisplay antenna, array structures or shapes
plotPlot boundary of shape
meshMesh properties of metal, dielectric antenna, or array structure
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
scaleChange the size of the shape by a fixed amount
mirrorXMirror shape along X-axis
mirrorYMirror shape along Y-axis
removeHolesRemove holes from shape
removeSliversRemove sliver outliers from boundary of shape

Examples

collapse all

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

Figure contains an axes object. The axes object with xlabel x (m), ylabel y (m) contains 2 objects of type patch. These objects represent PEC, mypolygon.

Mesh the polygon and display the meshed shape.

mesh(p,0.2)

Figure contains an axes object. The axes object with xlabel x (m), ylabel y (m) contains an object of type patch.

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

translate(p,[2,1,0])
axis equal

Figure contains an axes object. The axes object with xlabel x (m), ylabel y (m) contains 2 objects of type patch. These objects represent PEC, mypolygon.

Version History

Introduced in R2017a