Azzera filtri
Azzera filtri

Timeline plot of GPS (Latitude and Longitude) data - Plot GPS overtime.

9 visualizzazioni (ultimi 30 giorni)
In table A i do have Year, Month, Day, Hour, Minute, Sec, Latitude, Longitude, Altitude.
I have a plot of the gps coordinates using
geoscatter(table_A.Latitude,table_A.Longitude,4)
Now I want to plot the coordinates over time. any help?

Risposta accettata

dpb
dpb il 21 Ott 2022
tT.Time=datetime(tT.Year, tT.Month, tT.Day, tT.Hour, tT.Minute, tT.Sec);
plot(tT.Time, tT{:,{'Latitude', 'Longitude', 'Altitude'}})
  2 Commenti
Frederick Awuah-Gyasi
Frederick Awuah-Gyasi il 21 Ott 2022
@dpb Thanks for the code. What I plotted is showing in the attachment. Canl you please help me interprete it. Especially the Y axis. thank you.
dpb
dpb il 21 Ott 2022
Try
tT.Time=datetime(tT.Year, tT.Month, tT.Day, tT.Hour, tT.Minute, tT.Sec);
plot(tT.Time, tT{:,{'Latitude', 'Longitude'}})
legend({'Latitude', 'Longitude'})
ylabel('Coordinates')
yyaxis right
plot(tT.Time, tT.Altitude)
ylabel('Altutude')
and it should all become clear... :)
The scale difference between the coordinates and the altitude on the same axes makes for strange bedfellows so split the altitude off onto its own axes.
It would appear the data are for a geosynchronous orbit; the position doesn't appear to change coordinates at all; the altitude seems pretty much a constant with some spikes (noise maybe???). The one extremely large spike surely seems anomalous, but knowing nothing about what the data are, it may be real or, again, bad data.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Dates and Time in Help Center e File Exchange

Prodotti


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by