Divergence-Curl Demo
This demo allows the user to input an arbitrary 2-D vector field as a function of Cartesian (x,y) and/or polar coordinates (r,t). The value of the vector field is shown with arrows using the QUIVER command. The user can overlay the divergence, curl, and magnitude as scalar fields shown in color. This serves as a simple, easy-to-use visualization tool for vector fields, and because the user can input arbitrary functions, allows for more interactive experimentation than simply looking at a few graphs out of a textbook.
Cite As
Teja Muppirala (2026). Divergence-Curl Demo (https://www.mathworks.com/matlabcentral/fileexchange/41735-divergence-curl-demo), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.