Main Content

Vector Fields

Quiver, compass, feather, and stream plots

Vector fields can model velocity, magnetic force, fluid motion, and gradients. Visualize vector fields in a 2-D or 3-D view using the quiver, quiver3, and streamline functions. You can also display vectors along a horizontal axis or from the origin.

Three figures showing quiver, contour, and streamline plots


expand all

quiverQuiver or vector plot
quiver33-D quiver or vector plot
compassArrows emanating from origin
featherArrows from x-axis
streamlinePlot streamlines from 2-D or 3-D vector data
streamslicePlot streamlines in slice planes


Quiver PropertiesQuiver chart appearance and behavior
Line PropertiesChart line appearance and behavior