Create circle centered at origin on xy-plane
antenna.Circle object to create a circle centered
at the origin and on the xy-plane. You can use
antenna.Circle to create single-layer or multi-layered antennas
circle = antenna.Circle creates a circle centered at
the origin and on the xy-plane.
circle = antenna.Circle(Name=Value) creates a circle,
with additional Properties
specified by one or more name-value arguments.
the property name and
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 circle
"mycircle" (default) | string
Name of circle, specified as a string.
Center — Cartesian coordinates of circle center
[0 0] (default) | 2-element vector
Cartesian coordinates of circle center, specified as a 2-element vector in meters.
Radius — Circle radius
1 (default) | scalar
Circle radius, specified as a scalar in meters.
NumPoints — Number of discretization points on circumference
30 (default) | scalar
Number of discretization points on circumference, specified as a scalar.
|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 Circle with Default Properties
Create and view circle using
antenna.Circle and view it.
c1 = antenna.Circle
c1 = Circle with properties: Name: 'mycircle' Center: [0 0] Radius: 1 NumPoints: 30
Create Circle with Specified Properties
Create a circle centered at the origin with a radius of 4 m.
c2 = antenna.Circle(Radius=4)
c2 = Circle with properties: Name: 'mycircle' Center: [0 0] Radius: 4 NumPoints: 30
Add Two Shapes
Create a circle with a radius of 1m. The center of the circle is at [1 0].
circle1 = antenna.Circle(Center=[1 0],Radius=1);
Create a rectangle with a length of 2m and a width of 4m centered at the origin.
rect1 = antenna.Rectangle(Length=2,Width=2);
Add the two shapes together using the
polygon1 = circle1+rect1
polygon1 = Polygon with properties: Name: 'mypolygon' Vertices: [21x3 double]
Introduced in R2017a