File: xsegs.cat

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (45 lines) | stat: -rw-r--r-- 1,257 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
39
40
41
42
43
44
45

xsegs(2)                       Scilab Function                       xsegs(2)
NAME
  xsegs - draw unconnected segments

CALLING SEQUENCE
  xsegs(nx,ny,[style])

PARAMETERS

  nx,ny          : two matrices of the same size 2*n

  style          : a matrix of size n or a scalar. If style is a positive
                 scalar it gives the dash style to use for all segments, if
                 it is a negative scalar then current dash style is used, if
                 it is a vector style[i] gives the style to use for segment
                 i.

DESCRIPTION
  this function draws a set of unconnected segments given by nx,ny which are
  internally considered as vectors ( using the Fortran storage convention).
  The coordinates of the two points defining a segment are given by two con-
  secutive values of nx and ny.

  (nx[i],ny[i])-->(nx[i+1],nx[i+2])

  Using matrices of size (2,.) the segments can be defined by
  nx=[ xi_1,xi_
       xf_1,xf_2,...  ]

  ny=[ yi_1,yi_2,.....;
      yf_1,yf_2,...  ]
  the segments are then (xi_k,yi_k)->(xf_k,yf_k)

EXAMPLE
  x=2*%pi*(0:9)/8;
  x1=[sin(x);9*sin(x)];
  y1=[cos(x);9*cos(x)];
  plot2d([-10,10],[-10,10],[-1,-1],"022");
  xset('clipgrf')
  xsegs(x1,y1,1:10);
  xset('clipoff')

AUTHOR
  C. J.Ph