streamline
Plotting
Streamline plot. Traces flow lines through a 2D vector field using RK4 integration. X, Y define the grid, U, V are velocity components, and startX, startY are seed points.
Syntax
streamline(X, Y, U, V, startX, startY)
Examples
g = meshgrid(-2:0.5:2, -2:0.5:2); streamline(g.X, g.Y, -g.Y, g.X, [-2], [0])▶ Run
See Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab