- Scilab Online Help
- Graphics Library
Please note that the recommended version of Scilab is 2023.1.0. This page might be outdated.
See the recommended documentation of this function
2D vector field plot
two vectors which define the grid.
a matrix which describes the x component of the vector field.
fx(i,j)is the x component of the vector field at point
a matrix which describes the y component of the vector field.
fy(i,j)is the y component of the vector field at point
This represents a sequence of statements
key2,...can be one of the following: arfact, rect, strf (see below).
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=[xmin,ymin,xmax,ymax]which gives the boundaries of the graphics frame to use.
a string of length 3 "xyz" which has the same meaning as the
plot2d. The first character x has no effect with
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
Enter the command
champ() to see a demo.
|<< Sgrayplot||2d_plot||champ1 >>|