ecef2aer
Transform geocentric Earth-centered Earth-fixed coordinates to local spherical
Description
[
                transforms the geocentric Earth-centered Earth-fixed (ECEF) Cartesian coordinates
                specified by az,elev,slantRange]
= ecef2aer(X,Y,Z,lat0,lon0,h0,spheroid)X, Y, and
                    Z to the local azimuth-elevation-range (AER) spherical
                coordinates specified by az, elev, and
                    slantRange. Specify the origin of the local AER system with
                the geodetic coordinates lat0, lon0, and
                    h0. Each coordinate input argument must match the others in
                size or be scalar. Specify spheroid as the reference spheroid
                for the geodetic coordinates.
[___] = ecef2aer(___,
                specifies the units for latitude, longitude, azimuth, and elevation. Specify
                    angleUnit)angleUnit as 'degrees' (the default) or
                    'radians'.