Member of the vector class.
[curlz, cav] = curl(dx, dy, Fx, Fy)
Computes the curl and the curl angular velocity of a two-dimensional vector field.
| Name | Description |
| dx | Specifies the spacing between points along the x-axis, or between values of the second dimension in a 2D array. dx is an array of double-precision, floating-point numbers. The default is 1. |
| dy | Specifies the spacing between points along the y-axis, or between values of the first dimension in a 2D array. dy is an array of double-precision, floating-point numbers. The default is 1. |
| Fx | Specifies the x-components of a two-dimensional vector field. Fx is a 2D array of double-precision, floating-point numbers. |
| Fy | Specifies the y-components of a two-dimensional vector field. Fy is a 2D array of double-precision, floating-point numbers and must be the same size as Fx. |
| Name | Description |
| curlz | Returns the z-components of the curl of the vector field. curlz is of the same dimension and data type as Fx. |
| cav | Returns the curl angular velocity of the vector field. cav is of the same dimension and data type as Fx. |
You can specify the spacing between the points of the curl in two ways. If dx or dy contains only one element, the spacing between two consecutive points in the corresponding axis is constant. If dx or dy contains more than one element, the values of the elements specify the coordinates of the points in the corresponding axis. The length of dx or dy must therefore conform to the corresponding dimension of the vector field.
FX = rand(3, 4);
FY = rand(3, 4);
[CURLZ, CAV] = curl(1:4, 1:3, FX, FY);