Documentation

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.

ecef2lv

Convert geocentric (ECEF) to local vertical coordinates

ecef2lv will be removed in a future release. Use ecef2enu instead. In ecef2enu, 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'.

Syntax

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

Description

[xl,yl,zl] = ecef2lv(x,y,z,phi0,lambda0,h0,ellipsoid) converts geocentric point locations specified by the coordinate arrays x, y, and z to the local vertical coordinate system, with its origin at geodetic latitude phi0, longitude lambda0, and ellipsoidal height h0. The arrays x, y, and z may be of any shape, as long as they all match in size. phi0, lambda0, and h0 must be scalars. ellipsoid is a referenceEllipsoid (oblateSpheroid) object, a referenceSphere object, or a vector of the form [semimajor axis, eccentricity]). x, y, z, and h0 must have the same length units as the semimajor axis. phi0 and lambda0 must be in radians. The output coordinate arrays, xl, yl, and zl are the local vertical coordinates of the input points. They have the same size as x, y, and z and have the same length units as the semimajor axis.

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.

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?