curlz = curl(X, Y, U, V)
curlz = curl(U, V)
[curlz, cav] = curl(X, Y, U, V)
[curlx, curly, curlz, cav] = curl(X, Y, Z, U, V, W)
[curlx, curly, curlz, cav] = curl(U, V, W)
| Parameter | Description |
|---|---|
| X, Y, Z | Grid coordinates, as returned by meshgrid. Optional; a default unit grid is used otherwise. |
| U, V, W | Components of the vector field (same size). |
| Parameter | Description |
|---|---|
| curlx, curly, curlz | Components of the curl of the vector field. |
| cav | Angular velocity, equal to half the curl. |
curl computes the curl of a 2-D or 3-D vector field. In two dimensions it returns the single out-of-plane component curlz; in three dimensions it returns the three components of the curl. The angular velocity cav is half the curl.
The partial derivatives are evaluated with gradient on the grid defined by X, Y (and Z).
[x, y] = meshgrid(-3:3, -3:3);
u = -y;
v = x;
curlz = curl(x, y, u, v)
| Version | Description |
|---|---|
| 2.0.0 | initial version |