Convert Cartesian (ECEF) Coordinates to lat, lon, alt
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 (2026). 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
Platform Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Mapping Toolbox > Coordinate Reference Systems >
- Radar > Mapping Toolbox > Coordinate Reference Systems >
- Sciences > Geoscience >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Vectorized the recent precision enhancement. |
