File: champ.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 (52 lines) | stat: -rw-r--r-- 1,863 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
46
47
48
49
50
51
52
champ            Scilab Group            Scilab Function              champ
NAME
   champ - 2D vector field plot
  
CALLING SEQUENCE
 champ(x,y,fx,fy,[arfact,rect,strf])
 champ(x,y,fx,fy,<opt_args>)
PARAMETERS
 x,y      : two vectors which define the grid.
          
 fx       : a matrix which describes the x component of the vector field.
          fx(i,j) is the x component of the vector field at point
          (x(i),y(j)).
          
 fy       : a matrix which describes the y component of the vector field.
          fy(i,j) is the y component of the vector field at point
          (x(i),y(j)).
          
 <opt_args>
           : This represents a sequence of statements key1=value1, key2=value2,...
          where key1, key2,... can be one of the following: arfact, rect,
          strf (see below).
          
 arfact   : an optional argument of type real which gives a scale factor
          for the display of the arrow heads on the plot (default value is
          1.0).
          
 rect     : a vector rect=[xmin,ymin,xmax,ymax] which gives the boundaries
          of the  graphics frame to use.
          
 strf     : a string of length 3 "xyz" which has the same meaning as the
          strf parameter of plot2d. The first character x has no effect
          with champ.
          
DESCRIPTION
   champ draws a 2D vector field. The length  of the arrows is proportional
  to the intensity of the field.  If you want colored arrows with the color
  of the arrows depending on the  intensity of the field, use champ1. 
  Enter the command champ() to see a demo.
  
EXAMPLE
 // using rect as plot boundaries 
 champ(-5:5,-5:5,rand(11,11),rand(11,11),1,[-10,-10,10,10],"011")
 // using (x,y) to get boundaries 
 xbasc()
 champ(-5:5,-5:5,rand(11,11),rand(11,11),2,[-10,-10,10,10],"021")
SEE ALSO
   champ1, fchamp, plot2d
  
AUTHOR
   J.Ph.C.