www.gusucode.com > map 案例源码 matlab代码程序 > map/ConvertGeocentricCoordinatesToGeodeticCoordinatesExample.m

    %% Convert Geocentric Coordinates to Geodetic Coordinates
%
%%
% Convert the geocentric Earth-Centered Earth-Fixed (ECEF) Cartesian
% coordinates for Paris, France into geodetic coordinates
% (latitude,longitude).

% Copyright 2015 The MathWorks, Inc.

x =   4.2010e+06;
y =   1.7246e+05;
z =   4.7801e+06;
wgs84 = wgs84Ellipsoid('meters');
[lat,lon,h] = ecef2geodetic(wgs84,x,y,z)