Divergence of vector in 2D

Comparing the quiver plot of the vector function to the surface plot of its divergence scalar function
12 Downloads
Updated 18 Mar 2022

View License

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.

Cite As

Roche de Guzman (2024). Divergence of vector in 2D (https://www.mathworks.com/matlabcentral/fileexchange/108234-divergence-of-vector-in-2d), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0