Converter Cartesian coordinate to Geodetic coordinate

Converter Cartesian coordinates to Geodetic coordinates on Triaxial Ellipsoid or Biaxial Ellipsoid o
660 Downloads
Updated 21 Sep 2015

View License

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 (2024). Converter Cartesian coordinate to Geodetic coordinate (https://www.mathworks.com/matlabcentral/fileexchange/46248-converter-cartesian-coordinate-to-geodetic-coordinate), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Earth, Ocean, and Atmospheric Sciences in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
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