Converter Cartesian coordinate to Geodetic coordinate

Converter Cartesian coordinates to Geodetic coordinates on Triaxial Ellipsoid or Biaxial Ellipsoid o

You are now following this Submission

Converter Cartesian coordinates to Geodetic coordinates
on Triaxial Ellipsoid or Biaxial Ellipsoid or Sphere
(x/a)^2+(y/b)^2+(z/c)^2=1 Triaxial(general) Ellipsoid Equation
Cartesian To Geodetic x y z ==> B L h
Parameters:
* X, [x y z] - Cartesian coordinatesdata, n x 3 matrix or three n x 1 vectors
* axis,[a; b; c] - ellipsoid radii [a; b; c],its axes % along [x y z] axes

For Triaxial ellipsoid ,it must be a > b > c
For Biaxial ellipsoid ,it must be a = b > c
For Sphere ,it must be a = b = c
Output:
* Geo,[B,L,h] - Geodetic coordinates [latitude(deg);longitude(deg);ellipsoidal height(m)]

Author:
Sebahattin Bektas, 19 Mayis University, Samsun
sbektas@omu.edu.tr
How to cite this code:
BEKTAS, Sebahattin. Orthogonal distance from an ellipsoid. Bol. Ciênc. Geod. [online]. 2014, vol.20, n.4, pp. 970-983. ISSN 1982-2170.

Cite As

Sebahattin Bektas (2026). Converter Cartesian coordinate to Geodetic coordinate (https://uk.mathworks.com/matlabcentral/fileexchange/46248-converter-cartesian-coordinate-to-geodetic-coordinate), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Geoscience in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.5.0.0

update
figure added

1.4.0.0

minor explain

1.3.0.0

updated

1.2.0.0

optimized

1.1.0.0

update,syntax error

1.0.0.0