How can I plot coordinates up on a map?

4 ビュー (過去 30 日間)
kleinerwels94
kleinerwels94 2021 年 4 月 16 日
回答済み: Clayton Gotberg 2021 年 4 月 16 日
I have to visualize coordinates up onto a existing map. I have a .txt ´- file [PNR, X, Y, H] and the map in .jpg format.
So i need help for an easy way to do this plot.
Thank you!

回答 (1 件)

Clayton Gotberg
Clayton Gotberg 2021 年 4 月 16 日
You can use the hold command to plot two things to the same figure.
imshow('map_image')
hold on
plot(points_of_interest_x,points_of_interest_y)
You will likely need to modify either the image or the points of interest so that they can be overlaid (e.g. converting latitude and longitude to pixels in each direction).
If you want to label the points in the text file, you can use the text command or the fantastic labelpoints package in the File Exchange.

カテゴリ

Help Center および File ExchangeMap Display についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by