0. Syntax:[long,lonm,lons,latg,latm,lats,Direction] = UTMIP(instruccion)
1. With this little routine, you can get the transformation or the conversion of UTM coordinates to spherical coordinates, you can choose different ellipsoids to execute the conversion.
x, y, utm zone, and hemisphere.
Latitude, Longitude and the reference of the Longitude.
It's only necessary to run the function.
I designed the window in order to display in a screen of 1024 x 768.
This is the "inverse problem" of Spherical coordinates to UTM coordinates. You can also see the routine:
Conversion of Spherical Coordinates to UTM Coordinates, on Matlab Central -File Exchange, ID File: 8043.
Page of Gabriel Ortiz.
Author: Gabriel Ruiz Martinez, Civil Engineer .
If you'll detect any mistake or bug, may you communicate me?
I added the lines 305 and 308.
Gabriel Ruiz-Martinez (2021). Conversion of UTM Coordinates to Spherical Coordinates (https://www.mathworks.com/matlabcentral/fileexchange/8188-conversion-of-utm-coordinates-to-spherical-coordinates), MATLAB Central File Exchange. Retrieved .
Beware, this code does not use the correct UTM zones A,B,Y and Z around the poles!
you should add, that deg2dms is needed...
I just found a discrepancy between UTM and UTMIP. I tried the following pair.
Lat: 56d 16' 35.46" N
Lon: 3d 23' 46.82" E
UTM Zone: 31
UTM coord: 6237064.70 N, 524543.14 E
It looks like the UTM seems working correctly, but UTMIP produced opposite sign for longitute coordinate. For this test, I used "International 1909" datum. Please let me know if I am missing something here. Thank you!
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!