This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Convert local vertical to geocentric (ECEF) coordinates

    Note:   lv2ecef will be removed in a future release. Use enu2ecef instead. In enu2ecef, the latitude and longitude of the local origin are in degrees by default, so the optional angleUnit input should be included, with the value 'radians'.


[x,y,z] = lv2ecef(xl,yl,zl,phi0,lambda0,h0,ellipsoid)


[x,y,z] = lv2ecef(xl,yl,zl,phi0,lambda0,h0,ellipsoid) converts arrays xl, yl, and zl in the local vertical coordinate system to arrays x, y, and z in the geocentric coordinate system. The origin of the local vertical system is at geodetic latitude phi0, geodetic longitude lambda0, and ellipsoidal height h0. The arrays xl, yl, and zl may have any shape, as long as they are all the same size. They are measured in the same length units as the semimajor axis. phi0 and lambda0 are scalars measured in radians; h0 is a scalar with the same length units as the semimajor axis; and ellipsoid is a referenceEllipsoid (oblateSpheroid) object, a referenceSphere object, or a vector of the form [semimajor axis, eccentricity]). The coordinates x, y, and z also have the same units as the semimajor axis.


For a definition of the local vertical system, also known as East-North-Up (ENU), see the help for ecef2lv. For a definition of the geocentric system, also known as Earth-Centered, Earth-Fixed (ECEF), see the help for geodetic2ecef.

See Also

Introduced before R2006a

Was this topic helpful?