divergence
Divergence of a vector field.
Syntax
Section titled “Syntax”d = divergence(x, y, u, v, ...)Description
Section titled “Description”Returns ∂u/∂x + ∂v/∂y (and + ∂w/∂z in 3D) — the divergence of the vector field. Computed numerically from the gridded data.
Example
Section titled “Example”d = divergence(X, Y, U, V);