This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Display communication link on map


status = link(___)



link(rx,tx) plots a one-way point-to-point communication link between a receiver site and transmitter site. The plot is color coded to identify the link success status.

link(rx,tx,propmodel) plots the communication link based on the specified propagation model.


Signal strength is computed using a propagation model that disregards the curvature of the Earth, terrain, or other obstacles.

link(___,Name,Value)plots a communication link using additional options specified by Name,Value pairs.

status = link(___) returns the success status of the communication link as true or false.


collapse all

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.


Input Arguments

collapse all

Receiver site, specified as a rxsite object. You can use array inputs to specify multiple sites.

Transmitter site, specified as a txsite object. You can use array inputs to specify multiple sites.

Propagation model, specified as a character vector or string. You can also use the name-value pair 'PropagationModel' to specify this parameter.

Data Types: char | string

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value 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.

Example: 'Type','power'

collapse all

Propagation model to use for path loss calculation, specified as 'freespace', 'close-in', 'rain', 'gas', 'fog', or a propagation model object.

Data Types: char

Color of successful links, specified as an RGB triplet or character vector.

Data Types: char | double

Color of unsuccessful links, specified as RGB triplet or character vector.

Data Types: char | double

Output Arguments

collapse all

Success 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.

Introduced in R2017b

Was this topic helpful?