0

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

Thanks

Luis Mendo
  • 110,752
  • 13
  • 76
  • 147
Lipika Deka
  • 3,774
  • 6
  • 43
  • 56
  • 2
    You might want to check out http://www.mathworks.de/matlabcentral/fileexchange/15285-geodetic-toolbox – H.Muster Oct 24 '13 at 13:23
  • 1
    In case you are looking for a solution, this should be it. In case you want to implement it yourself, the first question should be: How to do this without matlab? – Dennis Jaheruddin Oct 24 '13 at 13:36
  • I tried using the geodetic tool box [x,y,z]=ell2xyz(0.825478323219267, -2.133569167552524, 6371000) – Lipika Deka Oct 24 '13 at 15:06

1 Answers1

1

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

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

[lat,lon,h] = xyz2ell(X,Y,Z) 
Dennis Jaheruddin
  • 21,208
  • 8
  • 66
  • 122
  • Useful link, thanks! I was looking for conversion from lat/lon to UTM and this toolbox seems to do that – Luis Mendo Sep 26 '14 at 11:07
  • @DouglasG.Allen Please elaborate a bit, just posting this link means that everyone should click it before they can know why/whether they would want to. – Dennis Jaheruddin May 26 '15 at 11:32
  • 1
    There is a toolkit from NOAA that may be used in Windows. But it might have nothing to do with Matlab. It's just for general information in case anyone else wants to know what's going on in this question since it has been answered. http://www.ngs.noaa.gov/TOOLS/XYZ/xyz.html – Douglas G. Allen May 28 '15 at 14:00