Create circle centered at origin on X-Y plane
antenna.Circle object to create a circle centered
at the origin and on the X-Y plane. You can use
create single-layer or multi-layered antennas using
circle = antenna.Circle creates a circle centered at
the origin and on the X-Y plane.
circle = antenna.Circle(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 circle
"mycircle" (default) | string | character vector
Name of circle, specified as a string or a character vector.
Center — Cartesian coordinates of circle center
[0 0] (default) | 2-element vector
Cartesian coordinates of center of circle, specified as a 2-element vector with each element measured 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|
|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 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