MATLAB Answers

northarrow and scaleruler geoshow

조회 수: 8(최근 30일)
muhammad iqbal habibie
I have longitude 112 to 114 and latitude -6.8 to -7.4.I am trying to range the longitude and latitude from geoshow
close all;
clear;
data1=shaperead('data.shp'); %polygon data
geoshow(data1)
u= shaperead('points.shp','UseGeoCoords', true) %point data of 3050x1
h=geoshow(u, 'Marker','o', ...
'MarkerEdgeColor', 'g',...
'MarkerSize',6)
x1 = [.3 .3];
y1 = [.6 .75];
ar = annotation('arrow',x1,y1);
c = ar.Color;
ar.Color = 'black';
scaleruler('units','km','rulerstyle','YLoc',112.1,'XLoc',-6.9);
legend([h],0.5,'ok');
I managed to make the arrow using annotation and I wanted to change the annotation using the northarrow. and I also have difficulties using scaleruler and have an error like this:
Error using scaleruler (line 73)
Incorrect number of arguments.
Error in plot_layers (line 44)
scaleruler('units','km','rulerstyle','YLoc',112.1,'XLoc',-6.9);

  댓글 수: 0

로그인 to comment.

답변(0개)

이 질문에 답변하려면 로그인을(를) 수행하십시오.

제품


릴리스

R2017b

Translated by