How can I use numbers as Markers in geoshow maplots
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
figure
ax = worldmap([32.5 42],[-125 -114]);
load coast
geoshow(ax, lat, long,...
'DisplayType', 'polygon', 'FaceColor', [.45 .60 .30])
states = shaperead('usastatelo', 'UseGeoCoords', true);
faceColors = makesymbolspec('Polygon',...
{'INDEX', [1 numel(states)], 'FaceColor', polcmap(numel(states))});
geoshow(ax, states, 'DisplayType', 'polygon', 'SymbolSpec', faceColors)
Map = xlsread('Locations.xlsx');
Map(:,3) = Cali_info(:,1);
Map(:,4) = Cali_info(:,2);
geoshow(Map(:,1),Map(:,2), 'DisplayType','Point','Marker','+','Color', 'red','Markersize',12);

0 Kommentare
Antworten (1)
Rohit Kudva
am 16 Jul. 2015
Hi Juan,
Unfortunately 'geoshow' function does not have any property that will allow you to use numerical markers on the map. You can instead use 'textm' function to display numerical markers. Refer to the following link to know more about the 'textm' function:
You can also refer to the following link which may help you resolve this issue:
I hope the above links will help you to get the desired output. All the best!
- Rohit
0 Kommentare
Siehe auch
Kategorien
Mehr zu Map Display finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!