File Exchange

image thumbnail

Converter Cartesian coordinate to Geodetic coordinate

version 1.5.0.0 (2.45 KB) by Sebahattin Bektas
Converter Cartesian coordinates to Geodetic coordinates on Triaxial Ellipsoid or Biaxial Ellipsoid o

2 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.

Comments and Ratings (1)

syntax error

Updates

1.5.0.0

figure added

1.5.0.0

update

1.4.0.0

minor explain

1.3.0.0

updated

1.2.0.0

optimized

1.1.0.0

update,syntax error

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor