- Aide de Scilab
- champ properties
- fec properties
- grayplot properties
- Matplot properties
Please note that the recommended version of Scilab is 2023.1.0. This page might be outdated.
However, this page did not exist in the previous stable version.
2D vector field plot with colored arrows
champ1(x, y, fx, fy, [arfact, rect, strf])
- x, y
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
an optional argument of type
realwhich 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.
controls the computation of the actual coordinate ranges from the minimal requested values. The associated value should be an integer ranging from 0 to 8.
specifies how the axes are drawn. The associated value should be an integer ranging from 0 to 5.
a string of length 3 "xyz" which has the same meaning as the
plot2d. The first character
xhas no effect with
champ1 draws a 2D vector field with colored
arrows. The color of the arrows depends on the intensity of the
If you want arrows proportional to the intensity of the field, use
Enter the command
champ1() to see a demo.
Be cautioned about the fact that using meshgrid function before
champ1 requires adjustment. For more details, see the last example below.
// using meshgrid to get fx and fy clf() x = linspace(-1,1,30); y = linspace(-1,1,30); [X,Y] = meshgrid(x,y); fy = 2.*Y; fx = 2.*X; champ1(x,y,fx',fy'); //here we have transposed fx and fy
|Report an issue|
|<< champ||2d_plot||champ properties >>|