Main Content

antenna.Ellipse

Create ellipse centered at origin on X-Y plane

Since R2020a

Description

Use the antenna.Ellipse object to create an ellipse centered at the origin on the X-Y plane.

Creation

Description

example

ellipse = antenna.Ellipse creates an ellipse centered at the origin on the X-Y plane.

example

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

Properties

expand all

Name of ellipse, specified as a string or a character vector.

Example: "ellipse1"

Data Types: char | string

Cartesian coordinates of center of ellipse, specified as a two-element vector with each element measured in meters.

Example: [0.006 0.006]

Data Types: double

Major axis of ellipse, specified as a scalar in meters.

Example: 2

Data Types: double

Minor axis of the ellipse, specified as a scalar in meters.

Example: 0.9

Data Types: double

Number of discretization points on circumference, specified as a scalar.

Example: 28

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 ellipse using antenna.Ellipse object.

e1 = antenna.Ellipse
e1 = 
  Ellipse with properties:

         Name: 'myEllipse'
       Center: [0 0]
    MajorAxis: 1
    MinorAxis: 0.5000
    NumPoints: 30

View the antenna.Ellipse object using the show function.

show(e1)

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

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.

mesh(e2,MaxEdgeLength=2e-1) 

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

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 minus operator.

 s = e3-r;

Mesh the subtracted shape with a maximum edge length of 1 m.

 mesh(s,1)

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

Version History

Introduced in R2020a