Scilab Function

xsegs - draw unconnected segments

Calling Sequence

xsegs(xv,yv,[style])

Parameters

Description

xsegs draws a set of unconnected segments given by xv and yv. If xv and yv are matrices they are considered as vectors by concatenating their columns. The coordinates of the two points defining a segment are given by two consecutive values of xv and yv:

(xv(i),yv(i))-->(xv(i+1),yv(i+1)).

For instance, using matrices of size (2,n), the segments can be defined by:

xv=[xi_1 xi_2 ...;
    xf_1 xf_2 ...]

yv=[yi_1 yi_2 ...;
    yf_1 yf_2 ...]
   

and the segments are (xi_k,yi_k)-->(xf_k,yf_k).

Examples

Author