How can I plot coordinates up on a map?
4 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Clayton Gotberg
on 16 Apr 2021
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 Comments
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!