フィルターのクリア

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

9 ビュー (過去 30 日間)
Frederick Awuah-Gyasi
Frederick Awuah-Gyasi 2022 年 10 月 21 日
コメント済み: dpb 2022 年 10 月 21 日
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?

採用された回答

dpb
dpb 2022 年 10 月 21 日
tT.Time=datetime(tT.Year, tT.Month, tT.Day, tT.Hour, tT.Minute, tT.Sec);
plot(tT.Time, tT{:,{'Latitude', 'Longitude', 'Altitude'}})
  2 件のコメント
Frederick Awuah-Gyasi
Frederick Awuah-Gyasi 2022 年 10 月 21 日
@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 2022 年 10 月 21 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by