Transform geodetic coordinates to local north-east-down
transforms the geodetic coordinates specified by
h to the local
north-east-down (NED) Cartesian coordinates specified by
zDown. Specify the origin of the local NED system with the
h0. Each coordinate input argument must match the others in
size or be scalar. Specify
spheroid as the reference spheroid
for the geodetic coordinates.
[___] = geodetic2ned(___,
specifies the units for latitude and longitude. Specify
'degrees' (the default) or
Find the NED coordinates of Mount Mansfield with respect to a nearby aircraft, using their geodetic coordinates.
First, specify the reference spheroid as WGS 84. For more information about WGS 84, see Reference Spheroids. The units for the ellipsoidal height and NED coordinates must match the units specified by the
LengthUnit property of the reference spheroid. The default length unit for the reference spheroid created by
wgs84 = wgs84Ellipsoid;
Specify the geodetic coordinates of the local origin. In this example, the local origin is the aircraft. Specify
h0 as ellipsoidal height in meters.
lat0 = 44.532; lon0 = -72.782; h0 = 1699;
Specify the geodetic coordinates of the point of interest. In this example, the point of interest is Mount Mansfield. Specify
h as ellipsoidal height in meters.
lat = 44.544; lon = -72.814; h = 1340;
Then, calculate the NED coordinates of Mount Mansfield with respect to the aircraft. Since the ellipsoidal height of the aircraft is greater than the height of Mount Mansfield, a passenger needs to look down to see the mountaintop. The z-axis of an NED coordinate system points down. Thus, the value of
zDown is positive. View the results in standard notation by specifying the display format as
format shortG [xNorth,yEast,zDown] = geodetic2ned(lat,lon,h,lat0,lon0,h0,wgs84)
xNorth = 1334.3
yEast = -2543.6
zDown = 359.65
Reverse the transformation using the
[lat,lon,h] = ned2geodetic(xNorth,yEast,zDown,lat0,lon0,h0,wgs84)
lat = 44.544
lon = -72.814
h = 1340