How can I plot coordinates up on a map?
조회 수: 3 (최근 30일)
이전 댓글 표시
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!
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!