matlab 画箭头请教那位matlab高手:如何在一个地图上用命令画出箭头?

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 01:38:18
matlab 画箭头请教那位matlab高手:如何在一个地图上用命令画出箭头?

matlab 画箭头请教那位matlab高手:如何在一个地图上用命令画出箭头?
matlab 画箭头
请教那位matlab高手:如何在一个地图上用命令画出箭头?

matlab 画箭头请教那位matlab高手:如何在一个地图上用命令画出箭头?
使用如下命令
ANNOTATION creates an annotation object
ANNOTATION(ANNOTATIONTYPE) creates a default annotation of type
ANNOTATIONTYPE in the current figure.ANNOTATIONTYPE may be one of the
following:
'rectangle'
'ellipse'
'textbox'
'line'
'arrow'
'doublearrow' = two headed arrow
'textarrow' = arrow with text at tail end
ANNOTATION('rectangle',POSITION) creates a rectangle annotation at the
position specified in normalized figure units by the vector POSITION
ANNOTATION('ellipse',POSITION) creates an ellise annotation at the
position specified in normalized figure units by the vector POSITION
ANNOTATION('textbox',POSITION) creates a textbox annotation at the
position specified in normalized figure units by the vector POSITION
ANNOTATION('line',X,Y) creates a line annotation with endpoints
specified in normalized figure coordinates by the vectors X and Y
ANNOTATION('arrow',X,Y) creates an arrow annotation with endpoints
specified in normalized figure coordinates by the vectors X and Y.X(1)
and Y(1) specify the position of the tail end of the arrow and X(2) and
Y(2) specify the position at the tip of the arrow head.
ANNOTATION('doublearrow',X,Y) creates a doublearrow annotation with
endpoints specified in normalized figure coordinates by the vectors X
and Y
ANNOTATION('textarrow',X,Y) creates a textarrow annotation with
endpoints specified in normalized figure coordinates by the vectors X
and Y.X(1) and Y(1) specify the position of the tail end of the arrow
and X(2) and Y(2) specify the position at the tip of the arrow head.
ANNOTATION(FIG,...) creates the annotation in the figure FIG
H=ANNOTATION(...) returns a handle to the annotation object
The arguments to ANNOTATION can be followed by parameter/value pairs to
specify additional properties of the annotation object.The X and Y or
POSITION arguments to ANNOTATION can be omitted entirely,and all
properties specified using parameter/value pairs.
Examples:rh=annotation('rectangle',[.1 .1 .3 .3]);
ah=annotation('arrow',[.9 .5],[.9,.5],'Color','r');
th=annotation('textarrow',[.3,.6],[.7,.4],'String','ABC');