![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177197/image.png)
Problem marking coordinates over a map
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jaime de la Mota
le 11 Fév 2017
Réponse apportée : mizuki
le 14 Fév 2017
I need to plot some coordinates on a map. I create the map by using: >> worldmap angola >> load coastlines >> plotm(coastlat,coastlon)
Once I do this, I want to mark some points in it. For that, I use geoshow(lat,long) but nothing apears on said coordenates. ¿Can someone please tell me how to propperly mark a point of the map if I have it's coordinates?
Thanks.
0 commentaires
Réponse acceptée
mizuki
le 14 Fév 2017
When you combine plotm (or other *m.m functions in Mapping Toolbox) and geoshow, you need to define axis in GEOSHOW function. Also, set DisplayType option as 'point' in GEOSHOW (default value is 'line').
ax = worldmap('angola');
load coastlines
setm(ax, 'Origin', [0 20 0])
plotm(coastlat,coastlon);
lat = -8;
lon = 13;
geoshow(ax, lat, lon, 'DisplayType', 'point', 'Marker', 'o')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177197/image.png)
0 commentaires
Plus de réponses (0)
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!