How to move an object on the map between 2 points?
3 ビュー (過去 30 日間)
古いコメントを表示
I have a problem of tracking the movement of an object. How can i see the navigation of an object between 2 geographical position on a map? let's say between Lat1 34.811N, Long1 139.281E - Lat2 34.791N, Long2 139.258E. thanks in advance for the answers and kind help.
0 件のコメント
回答 (1 件)
Chandrika
2022 年 6 月 26 日
As per my understanding, you want to track trajectory between two positions on a geographical map. In MATLAB, we can do this using the 'geoplot' function. Here is the reference code:
lat1=34.811;
long1=139.281;
lat2=34.791;
long2=139.258;
geoplot([lat1 lat2],[long1 long2],'r-')
text(lat1,long1,'Position1');
text(lat2,long2,'Position2');
For better understanding, please follow the attached documentation on 'geoplot' https://in.mathworks.com/help/matlab/ref/geoplot.html
2 件のコメント
Chandrika
2022 年 7 月 11 日
Could you please provide more description or sample demo into your requirement or attach the code if you are using any, so as to reproduce the issue?
参考
カテゴリ
Help Center および File Exchange で Geographic Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!