要手动将图形绘制到地图图形,诀窍是使用mfwdtran将纬度/经度数据转换为图形坐标系.然后你可以像往常一样使用箭头.这是一个基于
http://www.mathworks.com/help/toolbox/map/ref/track.html的示例的示例:
load coast
axesm('mercator','MapLatLimit',[28 47],'MapLonLimit',[-10 37],...
'Grid','on','Frame','on','MeridianLabel','on','ParallelLabel','on')
geoshow(lat,long,'DisplayType','line','color','b')
waypoints = [36,-5; 36,-2; 38,5; 38,11; 35,13; 33,30; 31.5,32];
[X, Y] = mfwdtran(waypoints(:,1),waypoints(:,2));
arrow([X(1:(end-1)) Y(1:(end-1))], [X(2:end) Y(2:end)])
顺便说一句,您还可以在调用geoshow时指定Marker属性.例如:
geoshow(waypoints(:,1),waypoints(:,2),'DisplayType','line','Marker','>','color','r')