Convert from geodetic coordinates to local East, North, Up (ENU) coordinates.
Inputs:
Note: alt (height) is relative to the reference ellipsoid, not the geoid. Use e.g., egm96geoid to compute the height difference between the geoid and the WGS84 reference ellipsoid.
angleUnit: string for angular units (’degrees’ or ’radians’, case-insensitive, just the first character will do). Default is ’degrees’.
Outputs:
Lengh units are those of the invoked reference ellipsoid (see below).
Example:
lat = 42.002; lon = -81.998; alt = 1000; lat0 = 42; lon0 = -82; alt0 = 200; [e, n, u] = geodetic2enu(lat, lon, alt, lat0, lon0, alt0, "wgs84", "degrees") e = 165.72 n = 222.18 u = 799.99
See also: enu2geodetic, geodetic2aer, geodetic2ecef, geodetic2ned, egm96geoid, referenceEllipsoid.
Package: mapping