Skip to content

quiver

2D vector field plot.

h = quiver(x, y, u, v, ...)

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).

[X, Y] = meshgrid(-2:0.5:2);
U = -Y; V = X;
quiver(X, Y, U, V) % rotational field
  • 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.