elevation

Elevation of site

Description

example

z = elevation(site) returns the ground or building surface elevation of antenna site in meters. Elevation is measured relative to mean sea level using earth gravitational model, EGM-96. If the site coincides with a building, elevation is measured at the top of the building. Otherwise, elevation is measured at the ground.

z = elevation(___,Name,Value) returns the ground elevation of the antenna in meters with additional options specified by name-value pairs.

Examples

collapse all

Compute and display the elevation at Mount Washington in meters.

mtwash = txsite('Name','Mt Washington','Latitude',44.2706, ...
       'Longitude',-71.3033);
z = elevation(mtwash)
z = 1.8675e+03

Input Arguments

collapse all

Transmitter or receiver site, specified as a txsite or rxsite object or an array of txsite or rxsite objects.

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 quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: 'Map','siteviewer1'

Map for visualization or surface data, specified as the comma-separated pair consisting of 'Map and a siteviewer object or a terrain name. A terrain name may be specified if the function is called with an output argument. Valid terrain names are 'none', 'gmted2010', or the name of the custom terrain data added using addCustomTerrain. The default value is the current Site Viewer. If no Site Viewer is open, the default value is a new Site Viewer or else 'gmted2010' if the function is called with an output argument.

Data Types: char | string

Output Arguments

collapse all

Ground or building surface elevation of the antenna site, returned as an M-by-1 matrix with each element unit in meters. M is the number of sites in site.

See Also

| | |

Introduced in R2018b