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="xsegs"> draw unconnected segments</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>xsegs(xv,yv,[style]) </CALLING_SEQUENCE_ITEM>
15
<PARAM_NAME>xv,yv</PARAM_NAME>
17
<SP>: matrices of the same size.</SP>
21
<PARAM_NAME>style</PARAM_NAME>
23
<SP>: vector or scalar. If <VERB>style</VERB> is a positive scalar, it gives the color to use for all segments. If <VERB>style</VERB> is a negative scalar, then current color is used. If <VERB>style</VERB> is a vector, then <VERB>style(i)</VERB> gives the color to use for segment <VERB>i</VERB>.</SP>
29
<P><VERB>xsegs</VERB> draws a set of unconnected segments given by <VERB>xv</VERB>
30
and <VERB>yv</VERB>. If <VERB>xv</VERB> and <VERB>yv</VERB> are matrices
31
they are considered as vectors by concatenating their columns.
32
The coordinates of the two points defining a segment
33
are given by two consecutive values of <VERB>xv</VERB> and <VERB>yv</VERB>:</P>
34
<P><VERB>(xv(i),yv(i))-->(xv(i+1),yv(i+1))</VERB>.</P>
36
For instance, using matrices of size (2,n), the segments can be defined by:</P>
47
and the segments are <VERB>(xi_k,yi_k)-->(xf_k,yf_k)</VERB>.</P>
54
plot2d([-10,10],[-10,10],[-1,-1],"022")
58
<AUTHOR>J.Ph.C. </AUTHOR>