Чтобы построить материал вручную на фигуре geoshow
, нужно использовать mfwdtran
для преобразования данных широты и долготы в систему координат фигуры. Тогда вы можете использовать arrow
как обычно. Вот пример построения на примере из 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)])

Кстати, вы также можете указать свойство Marker
в своих вызовах на geoshow
. Например:
geoshow(waypoints(:,1),waypoints(:,2),'DisplayType','line','Marker','>','color','r')
