streamslice
Display vector field direction on a slice or plane.
📝Syntax
streamslice(U, V)
streamslice(X, Y, U, V)
streamslice(X, Y, Z, U, V, W, sx, sy, sz)
streamslice(parent, ...)
h = streamslice(...)
[vertices, arrowVertices] = streamslice(...)
📄Description

streamslice displays vector field direction using line objects for stream paths and direction arrows.

With two outputs, streamslice returns cell arrays of streamline vertices and arrow vertices instead of drawing.

💡Examples
Display direction in a 2-D field.
[x, y] = meshgrid(-2:2, -2:2);
streamslice(x, y, -y, x);
Example illustration
🔗See Also
streamlinequiver
Edit this page on GitHub