How to create trajectory using lat long coordinates and overlay on a geographic map on maltab?

9 Ansichten (letzte 30 Tage)
I have an array of lat and long coordinates which I want overlay on a map and connect all the points to show a trajectory. I tried by writing a .kml file and open it on google earth but it does not allow me to customize anything on google earth. Is there a way to achieve this on matlab?

Antworten (1)

Cris LaPierre
Cris LaPierre am 18 Aug. 2021
You can use geoplot to plot lat-lon data on a geographic map. There are several examples on that page that can help you get started. Here's a combination of some of them.
latSeattle = 47.62;
lonSeattle = -122.33;
latAnchorage = 61.20;
lonAnchorage = -149.9;
geoplot([latSeattle latAnchorage],[lonSeattle lonAnchorage],'r-*','LineWidth',2)
geolimits([44 73],[-149 -123])
geobasemap colorterrain

Produkte


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by