Converter Cartesian coordinate to Geodetic coordinate
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.