geodetic2ecef
Transform geodetic coordinates to geocentric Earth-centered Earth-fixed
Syntax
Description
[X,Y,Z] = geodetic2ecef(lat,lon,h,spheroid) is supported
                    but not recommended. Unlike the previous syntaxes, specify
                        lat and lon in radians. Specify
                        spheroid as either a reference spheroid or an ellipsoid
                    vector of the form [semimajor_axis, eccentricity]. Specify
                        h in the same units as the length unit of the
                        spheroid argument. Additionally, the outputs
                        X, Y, and Z return
                    in the same units as the length unit of the spheroid
                    argument.
Examples
Input Arguments
Output Arguments
Tips
- 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-axis - 90 - 0 - North Pole 
Extended Capabilities
Version History
Introduced in R2012bSee Also
ecef2geodetic | ecefOffset | geodetic2aer | geodetic2ned | geodetic2enu | ecef2enu