1
champ1 Scilab Group Scilab Function champ1
3
champ1 - 2D vector field plot with colored arrows
6
champ1(x,y,fx,fy,[arfact,rect,strf])
8
x,y : two vectors which define the grid.
10
fx : a matrix which describes the x component of the vector field.
11
fx(i,j) is the x component of the vector field at point
14
fy : a matrix which describes the y component of the vector field.
15
fy(i,j) is the y component of the vector field at point
18
arfact : an optional argument of type real which gives a scale factor
19
for the display of the arrow heads on the plot (default value is
22
rect : a vector rect=[xmin,ymin,xmax,ymax] which gives the boundaries
23
of the graphics frame to use.
25
strf : a string of length 3 "xyz" which has the same meaning as the
26
strf parameter of plot2d. The first character x has no effect
30
champ1 draws a 2D vector field with colored arrows. The color of the
31
arrows depends on the intensity of the field. If you want arrows
32
proportional to the intensity of the field, use champ. Enter the command
33
champ1() to see a demo.
37
champ1(-5:5,-5:5,rand(11,11),rand(11,11),2,[-10,-10,10,10],"021")