Convert Latitude/Longitude

Version 1.0.0.0 (3.31 KB) by Matthew
Convert Latitude/Longitude between Degrees/Minutes/Seconds to/from Decimal
563 Downloads
Updated 30 Apr 2012

View License

Two simple functions for converting latitude and longitude between decimal degrees and degrees, minutes, and seconds.

Example:

degrees_minutes = degreesDecimalToMinutes(23.554)
degrees_minutes =
23.0000 33.0000 14.4000

degrees_minutes = [-130,40,2.5]
degrees = degreesMinutesToDecimal([130,40,2])
degrees =
130.6672

Cite As

Matthew (2024). Convert Latitude/Longitude (https://www.mathworks.com/matlabcentral/fileexchange/36441-convert-latitude-longitude), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0