Live Script showing an example of a vector valued function w in 2D space (x and y) evaluated as a quiver plot. The divergence of w is a scalar field with values: negative, zero, and positive corresponding to net w flow: sinks (draining), even (conservation), and sources (originating), respectively.
Roche de Guzman (2022). Divergence of vector in 2D (https://www.mathworks.com/matlabcentral/fileexchange/108234-divergence-of-vector-in-2d), MATLAB Central File Exchange. 검색됨 .