将笛卡尔坐标转换为纬度/经度

问题描述:

如何在Matlab中将笛卡尔坐标(x,y和z)转换为纬度和经度(以十进制表示)?

How can we convert Cartesian coordinates (x, y and z) into latitude and longitude (in decimals) in Matlab?

谢谢

如@ H.Munster所建议,它似乎像

As suggested by @H.Munster it seems like the Geodetic Toolbox - File Exchange submission contains what you need.

尤其是:xyz2ell-直角(x,y,z)到椭圆形(lat,long,ht)的坐标

In particular: xyz2ell - Cartesian (x,y,z) to ellipsoidal (lat,long,ht) coordinates

[lat,lon,h] = xyz2ell(X,Y,Z)