mesh
Mesh properties of metal or dielectric antenna or array structure
Description
mesh(
plots the mesh used to
analyze antenna or array element.object
)
mesh(
changes
and plots the mesh structure of an antenna or array element, using additional
options specified by the name-value pairs. You can also determine the number of
unknowns from the number of basis functions in the output.object
,Name,Value
)
meshdata = mesh(___,
returns a mesh structure that specifies the properties used to analyze the
antenna or array.Name,Value
)
Examples
View Mesh Structure of Antenna
Create and view the mesh structure of a top-hat monopole antenna with Maximum edge length of 0.1 m.
h = monopoleTopHat; i = impedance(h,75e6)
i = 2.4349e+02 + 5.9132e+02i
mesh(h)
m = mesh(h)
m = struct with fields:
NumTriangles: 148
NumTetrahedra: 0
NumBasis: 203
MaxEdgeLength: 0.4295
MeshMode: 'auto'
Mesh Microstrip Patch Metal-Dielectric Antenna
Radiation Pattern of Microstrip Patch Antenna
Create a microstrip patch antenna using 'FR4' as the dielectric substrate.
d = dielectric('FR4'); pm = patchMicrostrip('Length',75e-3, 'Width',37e-3, ... 'GroundPlaneLength',120e-3, 'GroundPlaneWidth',120e-3, ... 'Substrate',d); show(pm)
Plot the radiation pattern of the antenna at a frequency of 1.67 GHz.
figure pattern(pm,1.67e9)
Mesh the whole antenna.
figure mesh(pm)
Mesh only the dielectric surface of the antenna.
figure mesh(pm,'View','dielectric surface')
Mesh Arbitrary Shape
Create a rectangular and circular shape, intersect them and mesh at a wavelength of 2 m.
r = antenna.Rectangle; c = antenna.Circle; p = r&c; mesh(p,2);
View Sliced Mesh Plot of Antenna
Create a default horn antenna. Mesh the structure with the 'Slicer'
argument set to 'on'
.
ant = horn; z = impedance(ant,70e6); mesh(ant,'Slicer','on')
Select Enable slicer Mode. Then select a plane for the slice under Orientation.
Click on the plot and select a region to hide.
Click Hide Selected Region to view the desired slice.
Input Arguments
object
— Antenna or array element
object
Antenna or array element, specified as an object.
shape
— Shape created using custom elements and shape objects
object
Shape created using custom elements and shape objects of Antenna Toolbox,
specified as an object. You can create the shapes using antenna.Circle
, antenna.Polygon
, or antenna.Rectangle
.
Example: c = antenna.Rectangle; mesh(c)
Name-Value Arguments
Example: ‘MaxEdgeLength’, 0.1
Specify optional comma-separated pairs of Name,Value
pair
arguments. Name
is the argument name and Value
is
the corresponding value. Name
must appear inside
single quotes (''
). You can specify several name
and value pair arguments in any order as Name1, Value1, ...,
NameN, ValueN
.
MaxEdgeLength
— Maximum edge length of triangles in mesh
scalar
Maximum edge length of triangles in mesh, specified as a
comma-separated pair consisting of 'MaxEdgeLength'
and a scalar in meters. All triangles in the mesh have sides less than
or equal to the 'MaxEdgeLength'
value.
Data Types: double
MinEdgeLength
— Minimum edge length of triangles in mesh
scalar
Minimum edge length of triangles in mesh, specified as a
comma-separated pair consisting of 'MinEdgeLength'
and a scalar in meters. All triangles in the mesh have sides greater
than or equal to the 'MinEdgeLength'
.
Note
You can use this property only with the pcbStack
object.
Data Types: double
GrowthRate
— Mesh growth rate
0.7
(default) | scalar
Mesh growth rate, specified as a comma-separated pair consisting of
'GrowthRate'
and a scalar. The default value of
0.7
states that the growth rate of the mesh is 70
percent. Growth rate values lie between 0
and
1
.
Note
You can use this property only with the pcbStack
object.
Data Types: double
View
— Customize mesh view of antenna or array element
'all'
(default) | 'metal'
| 'dielectric surface'
| 'dielectric volume'
Customize mesh view of antenna or array element, specified as a
comma-separated pair consisting of 'View'
and
'all'
,
'metal'
,'dielectric surface'
,
or 'dielectric volume'
.
You choose 'dielectric surface'
to view the
boundary triangle mesh of the dielectric. You choose
'dielectric volume'
to view the tetrahedral
volume mesh of the dielectric.
Data Types: char
Slicer
— Flag to enable or disable plot interactivity
0
(default) | 1
| 'off'
| 'on'
Flag to enable or disable plot interactivity, specified as
'on'
or 'off'
, or as numeric
or logical 1(true)
or 0(false)
.
Setting this flag to 1
or 'on'
opens a plot with the Slicer panel, where you can slice and view the
desired cross section of the plot along the XY-,
YZ-, and XZ- planes. Setting
this flag to 0
or 'off'
opens a
plot without the Slicer panel.
Data Types: string
| logical
Version History
See Also
show
| meshconfig
| plot
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)