Convert lat/longs to decimal
Show older comments
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'}
Answers (0)
Categories
Find more on Coordinate Reference Systems in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!