Display communication link on map
link(___,
plots a
communication link using additional options specified by
Name,Value
)Name,Value
pairs.
returns
the success status of the communication link as status
= link(___)true
or
false
.
Create a transmitter site.
tx = txsite('Name','MathWorks', ... 'Latitude', 42.3001, ... 'Longitude', -71.3503);
Create a receiver site with sensitivity defined in dBm.
rx = rxsite('Name','Boston', ... 'Latitude', 42.3601, ... 'Longitude', -71.0589, ... 'ReceiverSensitivity', -90);
Plot the communication link between the transmitter and the receiver.
link(rx,tx)
rx
— Receiver siterxsite
object | array of rxsite
objectsReceiver site, specified as a rxsite
object. You can use array inputs to
specify multiple sites.
tx
— Transmitter sitetxsite
object | array of txsite
objectsTransmitter site, specified as a txsite
object. You can use array inputs to
specify multiple sites.
propmodel
— Propagation modelPropagation model, specified as a character vector or string. You can use
the propagationModel
function to define this
input. The default value depends on the coordinate system used by the input
sites:
Coordinate System | Default propagation model value |
---|---|
'geographic' |
|
'cartesian' |
|
You can also use the name-value pair 'PropagationModel'
to specify this parameter.
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is
the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
'Type','power'
'PropagationModel'
— Propagation model to use for path loss calculations'longley-rice'
(default) | 'freespace'
| 'close-in'
| 'rain'
| 'gas'
| 'fog'
| 'raytracing-image-method'
| propagation model objectPropagation model to use for the path loss calculations, specified as
the comma-separated pair consisting of
'PropagationModel'
and one of the following:
'freespace'
- Free space propagation
model
'rain'
- Rain propagation model
'gas'
- Gas propagation model
'fog'
- Fog propagation model
'close-in'
- Close-in propagation
model
'lonley-rice'
- Longely-Rice
propagation model
'tirem'
- Tirem propagation
model
'ray-tracing-image-method'
-
-Raytracing propagation model using method of images.
The default propagation model is
'longley-rice'
when terrain is enabled and
'freespace'
when terrain is disabled.
Terrain propagation models including 'longley-rice'
and 'tirem'
are only supported for sites with
CoordinateSystem
property set to
'geographic'
.
Data Types: char
'SuccessColor'
— Color of successful links'green'
(default) | RGB triplet | character vectorColor of successful links, specified as the comma-separated pair
consisting of 'SuccessColor
and an RGB triplet or
character vector. For more information, see ColorSpec (Color Specification)
.
Data Types: char
| double
'FailColor'
— Color of unsuccessful links'red'
(default) | RGB triplet | character vectorColor of unsuccessful links, specified as the comma-separated pair
consisting of 'FailColor
and RGB triplet or character
vector. For more information, see ColorSpec (Color Specification)
.
Data Types: char
| double
'Map'
— Map for visualization or surface datasiteviewer
object | terrain nameMap for visualization or surface data, specified as the comma-separated pair
consisting of 'Map
and one of the following depending on the
coordinate system:
Coordinate System | Valid map values | Default map value |
---|---|---|
'geographic' |
|
|
'cartesian' | 'none' , triangulation object or name of an STL
file. | 'none' |
[a] Alignment of boundaries and region labels are a presentation of the feature provided by the data vendors and do not imply endorsement by MathWorks®. |
Data Types: char
| string
status
— Success status of communication linkSuccess status of communication links, returned as an M-by-N arrays. M is the number of transmitter sites and N is the number of receiver sites.
You have a modified version of this example. Do you want to open this example with your edits?