# Documentation

### This is machine translation

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

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

# aer2geodetic

Local spherical AER to geodetic

## Syntax

``````[lat,lon,h] = aer2geodetic(az,elev,slantRange,lat0,lon0,h0,spheroid)``````
``[___] = aer2geodetic(___,angleUnit)``

## Description

example

``````[lat,lon,h] = aer2geodetic(az,elev,slantRange,lat0,lon0,h0,spheroid)```) returns geodetic coordinates corresponding to coordinates `az`, `elev`, `slantRange` in a local spherical system. Any of the first six numeric input arguments can be scalar, even when the others are nonscalar; but all nonscalar numeric arguments must match in size. ```
````[___] = aer2geodetic(___,angleUnit)` adds `angleUnit` which specifies the units of inputs `az`, `elev`, `lat0`, `lon0`, and outputs `lat`, `lon`.```

## Examples

collapse all

Compute the latitude, longitude and orthometric height of the summit of the Matterhorn (Monte Cervino) from its azimuth, elevation and (slant) range relative to Zermatt, Switzerland. All distances and lengths are in meters.

Origin (reference point): Zermatt.

```fmt = get(0,'Format'); format short g lat0 = dm2degrees([46 1]) % convert degree-minutes to degrees lon0 = dm2degrees([ 7 45]) hOrthometric0 = 1620; hGeoid = 53; h0 = hOrthometric0 + hGeoid```
```lat0 = 46.017 lon0 = 7.75 h0 = 1673```

Azimuth, elevation, and slant range to Matterhorn summit.

```az = 237.8; elev = 18.755; slantRange = 8871.7;```

Latitude, longitude, and ellipsoidal height of summit.

```[lat, lon, hEllipsoidal] = aer2geodetic( ... az, elev, slantRange, lat0, lon0, h0, wgs84Ellipsoid) ```
```lat = 45.976 lon = 7.6583 hEllipsoidal = 4531```

Orthometric height of summit.

```hGeoid = 53; hOrthometric = hEllipsoidal - hGeoid format(fmt)```
```hOrthometric = 4478```

## Input Arguments

collapse all

Azimuth angles in the local spherical system, specified as a scalar, vector, matrix, or N-D array. Azimuths are measured clockwise from north. Values must be in units that match the input argument `angleUnit`, if supplied, and in degrees, otherwise.

Data Types: `single` | `double`

Elevation angles in the local spherical system, specified as a scalar, vector, matrix, or N-D array. Elevations are with respect to a plane perpendicular to the spheroid surface normal. Values must be in units that match the input argument `angleUnit`, if supplied, and in degrees, otherwise.

Data Types: `single` | `double`

Distances from origin in the local spherical system, returned as a scalar, vector, matrix, or N-D array. The straight-line, 3-D Cartesian distance is used. Units are determined by the `LengthUnit` property of the `spheroid` input.

Data Types: `single` | `double`

Geodetic latitude of local origin (reference) point(s), specified as a scalar value, vector, matrix, or N-D array. In many cases there is one origin (reference) point, and the value of `lat0` is scalar, but it need not be. (It may refer to a moving platform, for example). Values must be in units that match the input argument `angleUnit`, if supplied, and in degrees, otherwise.

Data Types: `single` | `double`

Longitude of local origin (reference) point(s), specified as a scalar value, vector, matrix, or N-D array. In many cases there is one origin (reference) point, and the value of `lon0` is scalar, but it need not be. (It may refer to a moving platform, for example). Values must be in units that match the input argument `angleUnit`, if supplied, and in degrees, otherwise.

Data Types: `single` | `double`

Ellipsoidal height of local origin (reference) point(s), specified as a scalar value, vector, matrix, or N-D array. In many cases there is one origin (reference) point, and the value of `h0` is scalar, but it need not be. (It may refer to a moving platform, for example). Units are determined by the `LengthUnit` property of the spheroid input.

Data Types: `single` | `double`

Reference spheroid, specified as a `referenceEllipsoid`, `oblateSpheroid`, or `referenceSphere` object. To create a spheroid object, use the creation function specific to the object, or the `wgs84Ellipsoid` function.

Example: `spheroid = referenceEllipsoid('GRS 80');`

Units of angles, specified as ‘degrees' (default), or 'radians'.

Data Types: `char`

## Output Arguments

collapse all

Geodetic latitudes of one or more points, returned as a scalar value, vector, matrix, or N-D array. Units are determined by the input argument `angleUnit`, if supplied; values are in degrees, otherwise. When in degrees, they lie in the closed interval [-90 90].

Longitudes of one or more points, returned as a scalar value, vector, matrix, or N-D array. Units are determined by the input argument `angleUnit`, if supplied; values are in degrees, otherwise. When in degrees, they lie in the interval [-180 180].

Ellipsoidal heights of one or more points, returned as a scalar value, vector, matrix, or N-D array. Units are determined by the `LengthUnit` property of the `spheroid` object

## See Also

#### Introduced in R2012b

Was this topic helpful?

Get trial now