File: xsegs.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (38 lines) | stat: -rw-r--r-- 1,190 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
xsegs            Scilab Group            Scilab Function              xsegs
NAME
   xsegs - draw unconnected segments
  
CALLING SEQUENCE
 xsegs(xv,yv,[style])
PARAMETERS
 xv,yv   : matrices of the same size.
         
 style   : vector or scalar. If style is a positive scalar, it gives the
         dash style to use for all segments. If style is a negative 
         scalar, then current dash style is used. If style is a vector, 
         then style(i) gives the style to use for segment i.
         
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).
  
EXAMPLE
 x=2*%pi*(0:9)/8;
 xv=[sin(x);9*sin(x)];
 yv=[cos(x);9*cos(x)];
 plot2d([-10,10],[-10,10],[-1,-1],"022")
 xsegs(xv,yv,1:10)
AUTHOR
   J.Ph.C.