Skip to content

stream3

plot · scripts/plot/draw/stream3.m

: xyz = stream3 (x, y, z, u, v, w, sx, sy, sz)
: xyz = stream3 (u, v, w, sx, sy, sz)
: xyz = stream3 (…, options)

Compute three-dimensional streamline vertices of a vector field.

u, v and w are the components on the grid given by x, y and z (vectors or 3-D coordinate arrays); without them the grid is 1:columns, 1:rows, 1:pages. Lines are traced from the seed points forward and backward through the trilinearly interpolated field. options is step or [step maxverts] (defaults 0.1 and 10000), as for stream2.

The result is a cell array with one p-by-3 matrix of vertices per seed.