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.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Transform geocentric (ECEF) to geodetic coordinates

```
[lat,lon,h]
= ecef2geodetic(spheroid,X,Y,Z)
```

```
[lat,lon,h]
= ecef2geodetic(___,angleUnit)
```

`[lat,lon,h] = geodetic2ecef(X,Y,Z,spheroid)`

`[`

transforms point locations in geocentric Earth-Centered Earth-Fixed (ECEF)
Cartesian coordinates, stored in the coordinate arrays X, Y, and Z, to geodetic
coordinates `lat`

,`lon`

,`h`

]
= ecef2geodetic(`spheroid`

,`X`

,`Y`

,`Z`

)`lat`

(geodetic latitude),
`lon`

(longitude), and `h`

(ellipsoidal height). The geodetic coordinates refer to the reference body
specified by the spheroid object, `spheroid`

.

`[`

This syntax is supported but not recommended. This syntax returns
`lat`

,`lon`

,`h`

] = geodetic2ecef(`X`

,`Y`

,`Z`

,`spheroid`

)`lat`

and `lon`

in radians.
`spheroid`

can be either a spheroid or an ellipsoid
vector of the form: ` [semimajor_axis, eccentricity]`

.
`X`

, `Y`

, and `Z`

must
use the same units as the semimajor axis. In this case, `H`

must use the same units as the semimajor axis.

The geocentric Cartesian (ECEF) coordinate system 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:

Latitude Longitude Notes X-axis 0 0 Equator at the Prime Meridian Y-axis 0 90 Equator at 90-degrees East Z-zxis 90 0 North Pole

`ecefOffset`

| `geodetic2ecef`

| `oblateSpheroid`

| `referenceEllipsoid`

| `referenceSphere`

Was this topic helpful?