23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2curl<br />

Purpose Computes the curl and angular velocity of a vector field<br />

Syntax [curlx,curly,curlz,cav] = curl(X,Y,Z,U,V,W)<br />

[curlx,curly,curlz,cav] = curl(U,V,W)<br />

[curlz,cav]= curl(X,Y,U,V)<br />

[curlz,cav]= curl(U,V)<br />

[curlx,curly,curlz] = curl(...), [curlx,curly] = curl(...)<br />

cav = curl(...)<br />

Description [curlx,curly,curlz,cav] = curl(X,Y,Z,U,V,W) computes the curl and<br />

angular velocity perpendicular to the flow (in radians per time unit) of a 3-D<br />

vector field U, V, W. The arrays X, Y, Z define the coordinates for U, V, W and must<br />

be monotonic and 3-D plaid (as if produced by meshgrid).<br />

[curlx,curly,curlz,cav] = curl(U,V,W) assumes X, Y, and Z are<br />

determined by the expression:<br />

[X Y Z] = meshgrid(1:n,1:m,1:p)<br />

where [m,n,p] = size(U).<br />

[curlz,cav]= curl(X,Y,U,V) computes the curl z-component and the<br />

angular velocity perpendicular to z (in radians per time unit) of a 2-D vector<br />

field U, V. The arrays X, Y define the coordinates for U, V and must be monotonic<br />

and 2-D plaid (as if produced by meshgrid).<br />

[curlz,cav]= curl(U,V) assumes X and Y are determined by the expression:<br />

[X Y] = meshgrid(1:n,1:m)<br />

where [m,n] = size(U).<br />

[curlx,curly,curlz] = curl(...), curlx,curly] = curl(...) returns<br />

only the curl.<br />

cav = curl(...) returns only the curl angular velocity.<br />

Examples This example uses colored slice planes to display the curl angular velocity at<br />

specified locations in the vector field.<br />

curl<br />

2-357

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!