Convert lat/longs to decimal
Afficher commentaires plus anciens
Hello,
I'm looking for an elegant solution to a problem I'm having converting lat/long coordinates to their decimal equivalents. I have a cellarray variable, known as fix_coords (see below) containing the latitude and longitude coordinates, which are always in the form of 6 numbers, followed by N or S, then 7 numbers followed by E or W. I would like to be able to output two separate variables, fix_LAT and fix_LONG in the decimal equivalent form as column vectors. How can I achieve this? I have the mapping toolbox.
fix_coords = {'515234N0002206W';'515242N0002242W';'514502N0000624W';'514652N0001500E';'514843N0003903E';'514925N0004745E';'515059N0010849E';'515049N0011013E';'515103N0011114E';'515427N0012534E';'520632N0022638E';'520657N0022919E';'520718N0022957E'}
Réponses (0)
Catégories
En savoir plus sur Coordinate Reference Systems dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!