Rotate geocentric Earth-centered Earth-fixed vector to local east-north-up
returns vector components
wUp in a local east-north-up (ENU) system corresponding to
W in a geocentric Earth-centered Earth-fixed (ECEF) system.
Specify the origin of the system with the geodetic coordinates
lon0. Each coordinate input
argument must match the others in size or be scalar.
[___] = ecef2enuv(___,
specifies the units for latitude and longitude. Specify
'degrees' (the default) or
Find the ENU velocity components of a ground vehicle using its ECEF velocity components.
Specify the geodetic coordinates of the vehicle in degrees and the ECEF velocity components in kilometers per hour.
lat0 = 17.4114; lon0 = 78.2700; U = 27.9799; V = -1.0990; W = -15.7723;
Calculate the ENU components of the vehicle. The units for the ENU components match the units for the ECEF components. Thus, the ENU components are returned in kilometers per hour. The rotation performed by
ecef2enuv does not affect the speed of the vehicle.
[uEast,vNorth,wUp] = ecef2enuv(U,V,W,lat0,lon0)
uEast = -27.6190
vNorth = -16.4298
wUp = -0.3186
Reverse the rotation using the
[U,V,W] = enu2ecefv(uEast,vNorth,wUp,lat0,lon0)
U = 27.9799
V = -1.0990
W = -15.7723
To transform coordinate locations instead of vectors, use the