www.gusucode.com > map 案例源码 matlab代码程序 > map/ConvertGeodeticCoordinatesToGeocentricCoordinatesExample.m
%% Convert Geodetic Coordinates to Geocentric Coordinates % %% % Convert the geodetic coordinates for Paris, France (48 degrees 51 minutes % 24 seconds North, 2 degrees 21 minutes 03 seconds East) to geocentric % Earth-Centered Earth-Fixed (ECEF) Cartesian coordinates. % Copyright 2015 The MathWorks, Inc. lat = dms2degrees([48 51 24]) lon = dms2degrees([2 21 03]) h = 80; wgs84 = wgs84Ellipsoid('meters'); [x,y,z] = geodetic2ecef(wgs84,lat,lon,h)