[az,elev,slantRange]
= geodetic2aer(lat,lon,h,lat0,lon0,h0,spheroid) returns
coordinates in a local spherical system corresponding to geodetic
coordinates lat, lon, h.
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.

[___] = geodetic2aer(___,angleUnit) adds angleUnit which
specifies the units of inputs lat, lon, lat0, lon0,
and outputs az, elev.

Compute the azimuth (in degrees), elevation
angle (in degrees), and line of sight distance from Zermatt, Switzerland
to the summit of the Matterhorn (Monte Cervino). All distances and
lengths are in meters.

Geodetic latitudes of one or more points, specified as a scalar
value, vector, matrix, or N-D array. Values must be in units that
match the input argument angleUnit, if supplied,
and in degrees, otherwise.

Longitudes of one or more points, specified as a scalar value,
vector, matrix, or N-D array. Values must be in units that match the
input argument angleUnit, if supplied, and in
degrees, otherwise.

Ellipsoidal heights of one or more points, specified as a scalar
value, vector, matrix, or N-D array. Values must be in units that
match the LengthUnit property of the spheroid object.

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.

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.

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.

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

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

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