Accelerating the pace of engineering and science

# Documentation Center

• Trial Software

# enu2aer

Local Cartesian ENU to local spherical AER

## Syntax

• [az,elev,slantRange] = enu2aer(xEast,yNorth,zUp)
• [___] = enu2aer(___,angleUnit)

## Description

[az,elev,slantRange] = enu2aer(xEast,yNorth,zUp) returns coordinates in a local spherical system corresponding to coordinates xEast, yNorth, zUp in a local east-north-up (ENU) Cartesian system having the same local origin. Any of the three numerical input arguments can be scalar, even when the others are nonscalar; but all nonscalar numeric arguments must match in size.

[___] = enu2aer(___,angleUnit) adds angleUnit which specifies the units outputs az, elev.

## Input Arguments

expand all

### xEast — Local ENU x-coordinatesscalar value | vector | matrix | N-D array

x-coordinates of one or more points in the the local ENU system, specified as a scalar value, vector, matrix, or N-D array.

Data Types: single | double

### yNorth — Local ENU y-coordinatesscalar value | vector | matrix | N-D array

y-coordinates of one or more points in the the local ENU system, specified as a scalar value, vector, matrix, or N-D array.

Data Types: single | double

### zUp — Local ENU z-coordinatesscalar value | vector | matrix | N-D array

z-coordinates of one or more points in the the local ENU system, specified as a scalar value, vector, matrix, or N-D array.

Data Types: single | double

### angleUnit — Units of angles'degrees' (default) | 'radians'

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

Data Types: char

## Output Arguments

expand all

### az — Azimuth anglesscalar value | vector | matrix | N-D array

Azimuth angles in the local spherical system, returned as a scalar value, vector, matrix, or N-D array. Azimuths are measured clockwise from north. Units are determined by the input argument angleUnit, if supplied; values are in degrees, otherwise. When in degrees, they lie in the half-open interval [0 360).

### elev — Elevation anglesscalar value | vector | matrix | N-D array

Elevation angles in the local spherical system, returned as a scalar value, vector, matrix, or N-D array. Elevations are with respect to a plane perpendicular to the spheroid surface normal. Units determined by the input argument angleUnit, if supplied; values are in degrees, otherwise. When in degrees, they lie in the closed interval [-90 90].

### slantRange — Distances from local originscalar value | vector | matrix | N-D array

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