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
引用格式
Matthew (2024). Convert Latitude/Longitude (https://www.mathworks.com/matlabcentral/fileexchange/36441-convert-latitude-longitude), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2012a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- Mathematics and Optimization > Mapping Toolbox > Geometric Geodesy > Lengths and Angles >
- Radar > Mapping Toolbox > Geometric Geodesy > Lengths and Angles >
在 Help Center 和 MATLAB Answers 中查找有关 Lengths and Angles 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!convert_lon_lat/
版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |