How can I convert latitudes in degree-minute format to decimal degrees?
11 ビュー (過去 30 日間)
古いコメントを表示
I have a dataset (in double format) consisting of latitudes: [4954 4958 NaN 5006] and another with longitudes: [6519 6424 NaN 6305]
The first two digits are degrees latitude or longitude, and the final two digits are minutes of latitude or longitude.
How can I most efficiently convert these to decimal-degree format?(E.g. 4954 ----> 49.90)
I attempted adding spaces between the degrees and minutes using regexp with the hope of then using dms2degrees, but couldn't figure out how to add a space between the digits. This doesn't seem efficient to me, so I am looking for a better method.
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!