quiver
2D vector field plot.
Syntax
Section titled “Syntax”h = quiver(x, y, u, v, ...)Description
Section titled “Description”Plots arrows at (x, y) with components (u, v). Each arrow’s length is proportional to the vector magnitude. Useful for visualizing 2D vector fields (gradients, fluid velocities).
Examples
Section titled “Examples”[X, Y] = meshgrid(-2:0.5:2);U = -Y; V = X;quiver(X, Y, U, V) % rotational fieldSee also
Section titled “See also”quiver3— 3D vector field plot.feather— Feather plot — vectors at regular x positions.compass— Compass plot — vectors radiating from origin.streamline— Streamlines through a 2D or 3D vector field.