Effacer les filtres
Effacer les filtres

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

9 vues (au cours des 30 derniers jours)
Frederick Awuah-Gyasi
Frederick Awuah-Gyasi le 21 Oct 2022
Commenté : dpb le 21 Oct 2022
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?

Réponse acceptée

dpb
dpb le 21 Oct 2022
tT.Time=datetime(tT.Year, tT.Month, tT.Day, tT.Hour, tT.Minute, tT.Sec);
plot(tT.Time, tT{:,{'Latitude', 'Longitude', 'Altitude'}})
  2 commentaires
Frederick Awuah-Gyasi
Frederick Awuah-Gyasi le 21 Oct 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 le 21 Oct 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Dates and Time dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by