image thumbnail

Convert Cartesian (ECEF) Coordinates to lat, lon, alt

version 1.0.0.0 (849 Bytes) by Michael Kleder
Convert earth-centered, earth-fixed (ECEF) coordinates to latitude, longitude, and altitude.

21.2K Downloads

Updated 27 Apr 2006

No License

ECEF2LLA - convert earth-centered earth-fixed (ECEF) cartesian coordinates to latitude, longitude, and altitude.

USAGE:
[lat,lon,alt] = ecef2lla(x,y,z)

lat = geodetic latitude (radians)
lon = longitude (radians)
alt = height above WGS84 ellipsoid (m)
x = ECEF X-coordinate (m)
y = ECEF Y-coordinate (m)
z = ECEF Z-coordinate (m)

Notes: This function assumes the WGS84 model. Latitude is customary geodetic (not geocentric).

Michael Kleder, April 2006

Cite As

Michael Kleder (2021). Convert Cartesian (ECEF) Coordinates to lat, lon, alt (https://www.mathworks.com/matlabcentral/fileexchange/7941-convert-cartesian-ecef-coordinates-to-lat-lon-alt), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!