Main Content

antenna.Ellipse

Create ellipse centered at origin on X-Y plane

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 pair arguments. For example, ellipse = antenna.Ellipse('MajorAxis',2,'Minoraxis',0.800) creates an ellipse with a longest diameter of 2 m and smallest diameter of 0.8 m. Enclose each property name in quotes.

Properties

expand all

Name of ellipse, specified as a character vector.

Example: 'Name','ellipse1'

Example: ellipse.Name= 'ellipse1'

Data Types: char | string

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

Example: 'Center',[0.006 0.006]

Example: Ellipse.Center= [0.006 0.006]

Data Types: double

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

Example: 'MajorAxis',1

Example: ellipse.MajorAxis= 2

Data Types: double

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

Example: 'MinorAxis',0.9

Example: ellipse.MinorAxis= 0.8

Data Types: double

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

Example: 'NumPoints',28

Example: ellipse.NumPoints= 60

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
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 contains 2 objects of type patch. This object represents PEC.

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 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 contains an object of type patch.

Version History

Introduced in R2020a