# curl

Version:
Last Modified: March 15, 2017

Computes the curl and the curl angular velocity of a 2D or 3D vector field.

## Syntax

[curlz, cav] = curl(Fx, Fy)
[curlz, cav] = curl(dx, dy, Fx, Fy)
[curlx, curly, curlz, cav] = curl(Fx, Fy, Fz)
[curlx, curly, curlz, cav] = curl(dx, dy, dz, Fx, Fy, Fz)
cav = curl(Fx, Fy)
cav = curl(dx, dy, Fx, Fy)
cav = curl(Fx, Fy, Fz)
cav = curl(dx, dy, dz, Fx, Fy, Fz)

## dx

Spacing between points along the x-axis or between values of the second dimension in a 2D or 3D array. dx is an array.

## dy

Spacing between points along the y-axis or between values of the first dimension in a 2D or 3D array. dy is an array.

## dz

Spacing between points along the z-axis or between values of the third dimension in a 3D array. dz is an array.

## Fx

X-components of a two-dimensional vector field. Fx is a 2D or 3D array.

## Fy

Y-components of a two-dimensional vector field. Fy is a 2D or 3D array and must be the same size as Fx.

## Fz

Z-components of a three-dimensional vector field. Fz is a 3D array. Fz must be the same size as Fx and Fy.

## curlx

X-components of the curl of the vector field.

## curly

Y-components of the curl of the vector field.

## curlz

Z-components of the curl of the vector field. curlz is of the same dimension and data type as Fx.

## cav

Curl angular velocity of the vector field. cav is of the same dimension and data type as Fx.

## Specifying the Spacing between Points of the Curl

dx, dy, and dz are arrays, and their values of the elements specify the coordinates of the points in the corresponding axis. If dx, dy, or dz contains only one element, MathScript returns an error.

FX = rand(3, 4);
FY = rand(3, 4);
[CURLZ, CAV] = curl(1:4, 1:3, FX, FY);

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices