Skip to content

streamribbon

plot · scripts/plot/draw/streamribbon.m

: h = streamribbon (x, y, z, u, v, w, sx, sy, sz)
: h = streamribbon (…, width)
: h = streamribbon (u, v, w, sx, sy, sz, …)
: h = streamribbon (verts, x, y, z, cav, speed, width)
: h = streamribbon (verts, cav, speed, width)
: h = streamribbon (ax, …)

Draw stream ribbons of a three-dimensional vector field.

A stream line is traced from every seed point (see stream3) and drawn as a flat ribbon centred on the line. The ribbon twists about the line with the angular velocity of the flow, obtained from the curl of the field, and its width is the optional scale factor width (default 1) times half a grid cell. With the vertex forms the lines verts (a cell array of p-by-3 matrices) are used together with the angular velocity cav and the flow speed speed, given either as volumes on the grid x, y, z or as cell arrays matching verts.

Each ribbon is a surface whose data have two rows (the two ribbon edges) and one column per line vertex. The column vector of surface handles is returned.