Given GPS coordinates, it is often useful to be able to plot the data on a Cartesian grid. The GPS2Cart.m function takes N latitude and longitude coordinates and returns N (x,y) coordinates in the first quadrant of a Cartesian grid (i.e. all x, y>=0).
WARNING: I have been using this for coordinates separated by a few km, and I believe the program does not work well for coordinates with larger separations (e.g. the scale of continents), due to the system being non-Euclidian.
Cite As
Tom Ashbee (2024). GPS2Cart (https://www.mathworks.com/matlabcentral/fileexchange/51323-gps2cart), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Industries > Automotive >
- Robotics and Autonomous Systems > Automated Driving Toolbox >
- Automotive > Automated Driving Toolbox >
Tags
Acknowledgements
Inspired by: zoharby/plot_google_map
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.