streamline(U, V, sx, sy)
streamline(vertices)
streamline(X, Y, U, V, sx, sy)
streamline(X, Y, Z, U, V, W, sx, sy, sz)
streamline(..., options)
streamline(parent, ...)
h = streamline(...)
streamline traces paths through 2-D or 3-D vector fields from the supplied start points.
streamline(vertices) draws precomputed streamline vertices supplied as a cell array. Each cell contains an N-by-2 or N-by-3 numeric array.
The optional options input is [stepsize] or [stepsize, maxvert]. stepsize is counted in grid cells and defaults to 0.1. maxvert is the largest number of vertices to produce, the start point counted in, and defaults to 500.
[x, y] = meshgrid(-2:2, -2:2);
streamline(x, y, -y, x, 0, 0);