Main Content

elevation

Elevation of site

Description

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.

This function only supports antenna sites with a CoordinateSystem property value of 'geographic'.

example

z = elevation(site,Map=map) specifies the map to use when calculating the elevation of the site.

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.8704e+03

Input Arguments

collapse all

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

Map for visualization or surface data, specified as one of the following:

  • A siteviewer object.1

  • A terrain name 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 siteviewer object or a new siteviewer object if none are open.

  • "gmted2010" if called with an output.

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.

Version History

Introduced in R2019b

See Also

Functions

Objects


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