Syntax
Description
div = divergence(X,Y,Z,U,V,W) computes the divergence of a 3-D vector field U, V, W. The arrays X, Y, Z define the coordinates for U, V, W and must be monotonic and 3-D plaid (as if produced by meshgrid).
div = divergence(U,V,W) assumes X, Y, and Z are determined by the expression:
div = divergence(X,Y,U,V) computes the divergence of a 2-D vector field U, V. The arrays X, Y define the coordinates for U, V and must be monotonic and 2-D plaid (as if produced by meshgrid).
div = divergence(U,V) assumes X and Y are determined by the expression:
Examples
This example displays the divergence of vector volume data as slice planes using color to indicate divergence.
No comments:
Post a Comment