How can I plot coordinates up on a map?

조회 수: 3 (최근 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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by