show
Show site in Site Viewer
Description
show(
displays the location of
the specified transmitter or receiver site using a marker in the current Site
Viewer.site
)
show(
displays site
,Name,Value
)site
with additional options specified by one or
more name-value arguments.
Examples
Create Receiver Site in Geographic Coordinates
Create a transmitter site. By default, receiver sites use geographic coordinates. Specify the latitude as 42.3001
degrees and the longitude as -71.3504
degrees.
rx = rxsite(Name="MathWorks Apple Hill", ... Latitude=42.3001,Longitude=-71.3504);
Display the receiver site.
show(rx)
Show and Hide Transmitter Site
Create and show a transmitter site.
tx = txsite('Name','MathWorks Apple Hill',... 'Latitude',42.3001, ... 'Longitude',-71.3504); show(tx)
Hide the transmitter site.
hide(tx)
Show and Hide Sites with Cartesian Coordinates
Import and view an STL file. The file models a small conference room with one table and four chairs.
viewer = siteviewer('SceneModel','conferenceroom.stl');
Create a transmitter site near the upper corner of the room and a receiver site above the table. Specify the position using Cartesian coordinates in meters. Then, visualize the sites.
tx = txsite('cartesian', ... 'AntennaPosition',[-1.46; -1.42; 2.1]); rx = rxsite('cartesian', ... 'AntennaPosition',[0.3; 0.3; 0.85]); show(tx) show(rx)
Pan by left-clicking, zoom by right-clicking or by using the scroll wheel, and rotate the visualization by clicking the middle button and dragging or by pressing Ctrl and left-clicking and dragging.
Hide the sites.
hide(tx) hide(rx)
Input Arguments
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
Example: 'ClusterMarkers',true
Icon
— Image file
character vector
Image file, specified as a character vector.
Data Types: char
IconSize
— Width and height of icon
36
-by-36
(default) | 1-by-2 vector of positive numeric values
Width and height of the icon, specified as a 1-by-2 vector of positive numeric values in pixels.
IconAlignment
— Vertical position of icon relative to site
'top' (default) | 'center'
| 'bottom'
Vertical position of icon relative to site, specified as:
'bottom
- Aligns the icon below the site antenna position.'center'
- Aligns the center of the icon to the site antenna position.'top'
- Aligns the icon above the site antenna position.
ClusterMarkers
— Combine nearby markers into groups or clusters
true | false
Combine nearby markers into groups or clusters, specified as true or false.
Data Types: char
Map
— Map for visualization of surface data
siteviewer
object
Map for visualization of surface data, specified as a siteviewer
object.1
Data Types: char
| string
ShowAntennaHeight
— Option to show line from site to surface
true
or 1
(default) | false
or 0
Option to show a white line from the site down to the nearest surface,
specified as numeric or logical 1
(true
) or 0
(false
).
Data Types: logical
Version History
Introduced in R2019b
See Also
1 Alignment of boundaries and region labels are a presentation of the feature provided by the data vendors and do not imply endorsement by MathWorks®.
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)