Create ellipse centered at origin on X-Y plane
antenna.Ellipse object to create an ellipse
centered at the origin on the X-Y plane.
ellipse = antenna.Ellipse creates an ellipse centered
at the origin on the X-Y plane.
ellipse = antenna.Ellipse(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 ellipse
"myEllipse" (default) | string | character vector
Name of ellipse, specified as a string or a character vector.
Center — Cartesian coordinates of ellipse center
[0 0] (default) | two-element vector
Cartesian coordinates of center of ellipse, specified as a two-element vector with each element measured in meters.
Major axis — Major axis of ellipse
1 (default) | scalar
Major axis of ellipse, specified as a scalar in meters.
Minor axis — Minor axis of ellipse
0.5 (default) | scalar
Minor axis of the ellipse, 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 an Ellipse with Default Properties
Create ellipse using
e1 = antenna.Ellipse
e1 = Ellipse with properties: Name: 'myEllipse' Center: [0 0] MajorAxis: 1 MinorAxis: 0.5000 NumPoints: 30
antenna.Ellipse object using the
Create an Ellipse with Specified Properties
Create an ellipse with major axis of 2 m and a minor axis of 0.8 m.
e2 = antenna.Ellipse(MajorAxis=2,MinorAxis=0.8)
e2 = Ellipse with properties: Name: 'myEllipse' Center: [0 0] MajorAxis: 2 MinorAxis: 0.8000 NumPoints: 30
Create a mesh with a Maximum edge Length of 20 cm.
Subtract Two Shapes
Create an ellipse with default properties.
e3 = antenna.Ellipse;
Create a rectangle with a length of 0.1 m and width of 0.2 m.
r = antenna.Rectangle(Length=0.1,Width=0.2);
Subtract the two shapes using the
s = e3-r;
Mesh the subtracted shape with a maximum edge length of 1 m.
Introduced in R2020a