Convert Latitude/Longitude
Version 1.0.0.0 (3.31 KB) by
Matthew
Convert Latitude/Longitude between Degrees/Minutes/Seconds to/from Decimal
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 (2026). 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 LinuxCategories
- Mathematics and Optimization > Mapping Toolbox > Geometric Geodesy > Lengths and Angles >
- Radar > Mapping Toolbox > Geometric Geodesy > Lengths and Angles >
Find more on Lengths and Angles in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
