Plots GPS coordinates on a Cartesian grid


Updated 18 Oct 2015

View License

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 (2023). GPS2Cart (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

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!
Version Published Release Notes

New function Cart2GPS.m which takes a GPS origin and maps (x,y) coordinates to GPS. Again, assuming distances are Euclidian.