Calculate curl of vector field given by the arrays fx, fy, and fz or fx, fy respectively.
/ d d d d d d \ curl F(x,y,z) = |-- Fz - -- Fy, -- Fx - -- Fz, -- Fy - -- Fx | \ dy dz dz dx dx dy /
The coordinates of the vector field can be given by the arguments x, y, z or x, y respectively. v calculates the scalar component of the angular velocity vector in direction of the z-axis for two-dimensional input. For three-dimensional input the scalar rotation is calculated at each grid point in direction of the vector field at that point.
See also: divergence, gradient, del2, cross.
Package: octave