Lat Long To X Y
Show older comments
I have 2 locations with LAT and LONG coordinates, I would like to find X and Y distance between them in meters for the purpose of further plotting of a trajectory. Is there any specific tool in the Mapping toolbox for that or perhaps any other ways of doing that? Would grn2eqa work?

Accepted Answer
More Answers (1)
Cris LaPierre
on 8 Feb 2022
1 vote
You don't want to convert to X and Y because you will get the linear distance. The actual distance must account for curvature of the earth. I think you want to use the Haversine formula. It is fairly straight forward to code up yourself (see here)
Categories
Find more on Earth and Planetary Science in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!