1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
6
<TYPE>Scilab Function</TYPE>
7
<DATE>April 1993</DATE>
8
<SHORT_DESCRIPTION name="xarrows"> draw a set of arrows</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>xarrows(nx,ny,[arsize,style]) </CALLING_SEQUENCE_ITEM>
15
<PARAM_NAME>nx,ny</PARAM_NAME>
17
<SP>: real vectors or matrices of same size.</SP>
21
<PARAM_NAME>arsize</PARAM_NAME>
23
<SP>: real scalar, size of the arrow head. The default value can be obtained by setting arsize to -1.</SP>
27
<PARAM_NAME>style</PARAM_NAME>
29
<SP>: matrix or scalar. If <VERB>style</VERB> is a positive scalar it gives the color to use for all arrows. If it is a negative scalar then the current color is used. If it is a vector <VERB>style(i)</VERB> gives the color to use for arrow <VERB>i</VERB>.</SP>
35
<P><VERB>xarrows</VERB> draws a set of arrows given by <VERB>nx</VERB> and <VERB>ny</VERB>.
36
If <VERB>nx</VERB> and <VERB>ny</VERB> are vectors,
37
the ith arrow is defined by
38
<VERB>(nx(i),ny(i))-->(nx(i+1),ny(i+1))</VERB>.
39
If <VERB>nx</VERB> and <VERB>ny</VERB> are matrices:</P>
42
nx=[xi_1 x1_2 ...; xf_1 xf_2 ...]
43
ny=[yi_1 y1_2 ...; yf_1 yf_2 ...]
47
the <VERB>k</VERB> th arrow is defined by <VERB>(xi_k,yi_k)-->(xf_k,yf_k)</VERB>.</P>
48
<P><VERB>xarrows</VERB> uses the current graphics scale
49
which can be set by calling a high level drawing function such as <VERB>plot2d</VERB>.</P>
56
plot2d([-10,10],[-10,10],[-1,-1],"022")
62
<AUTHOR>J.Ph.C. </AUTHOR>