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

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.

More About

collapse all

Local Vertical System

In the local vertical Cartesian system defined by phi0, lambda0, h0, and ellipsoid, the xl axis is parallel to the plane tangent to the ellipsoid at (phi0,lambda0) and points due east. The yl axis is parallel to the same plane and points due north. The zl axis is normal to the ellipsoid at (phi0,lambda0) and points outward into space. The local vertical system is sometimes referred to as East-North-Up or ENU.

Geocentric System

The geocentric Cartesian coordinate system, also known as Earth-Centered, Earth-Fixed (ECEF), is fixed with respect to the Earth, with its origin at the center of the spheroid and its positive X-, Y-, and Z axes intersecting the surface at the following points:

 LatitudeLongitude Notes
X-axis00Equator at the Prime Meridian
Y-axis090Equator at 90-degrees East
Z-zxis900North Pole

See Also

Introduced before R2006a

Was this topic helpful?