Filter löschen
Filter löschen

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

9 Ansichten (letzte 30 Tage)
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?

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Dates and Time finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by