Create triangle on X-Y plane
antenna.Triangle object to create a triangular shape in
the X-Y plane with one vertex at the origin. You can use
shape to create single-layer or multi-layered antenna using the
tri=antenna.Triangle creates a triangular shape in the X-Y
plane with one vertex at the origin.
tri=antenna.Triangle(Name=Value) creates a triangle, with
additional Properties specified by 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.
tri = antenna.Triangle(InputType="SSS",Side=0.01)
creates a triangle using side-side-side congruence with 10mm side length.
Name — Name of triangular shape
"myTriangle" (default) | string
Name of the triangular shape, specified as a string.
InputType — Congruency condition
"SSS" (default) |
Congruency condition for the triangle specified as a string. Default condition is
"SSS"(side-side-side). Other supported conditions are
StartVertex — Start point to draw triangle
[0 0] (default) | 1-by-2 vector
Coordinates of the start point to draw the triangle, specified as a 1-by2 vector in meter. It is the intersection point between the base side and the left side separated with an angle.
Side — Side length of triangle
5e-3 (default) | positive scalar | positive 1-by-2 vector | positive 1-by-3 vector
Length of the triangle side, specified as a positive scalar in meter. The default
side length is 5 mm and
Sideaccepts a positive 1-by-3 vector for unequal side lengths or a positive scalar for equal side lengths.
Sideaccepts a positive 1-by-2 vector for unequal side lengths or a positive scalar for equal side lengths.
Sideaccepts a positive scalar.
[3e-3 4e-3 5e-3]
Angle — Adjacent side angle
60 (default) | positive scalar | positive 1-by-2 vector
Adjacent side angle of the triangle in degrees, specified as a positive scalar or a
positive 1-by-2 vector. This property is activated only when the
InputType is either
"ASA". It is the angle between the base side and left adjacent side
(sides which share the
congruence and angle between base side and other two adjacent sides for
"ASA" congruence. This property accepts
A positive scalar value for
A positive scalar value for equal angles and a positive 1-by-2 vector for unequal angles in
|Add data to polar plot|
|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 Right Angled Triangle and Rotate Along Z-Axis
This example shows how to create a traingular shape when two side dimensions and angle between them is known and rotate it by 45-degrees about the z-axis.
Create Traingular Shape
Create a right angled triangular shape with length of one side as 5 mm and the length of other side as 10 mm, and starting vertex [5 5].
Display the created shape.
t = antenna.Triangle(Name="Right_Angled_Triangle",InputType="SAS",... Side=[5e-3 10e-3],Angle=90,StartVertex=[5 5]); show(t)
Rotate Traingle About Z-Axis
Rotate the shape by 45-degrees about the z-axis.
Introduced in R2023a