Black Lives Matter. Please consider donating to Black Girls Code today.

Streamline Plots in MATLAB®

How to make a streamline plot in MATLAB®. A streamline plot displays vector field data.


load wind
zmax = max(z(:)); zmin = min(z(:));
streamslice(x,y,z,u,v,w,[],[],(zmax-zmin)/2)

p = plotlyfig(gcf);
for d = 1:length(p.data)
  p.data{d}.type = 'scatter'; 
end
p.plotly;
Edit, style, save, and export this streamline plot online:<br>
<a href="https://plotly.com/~jackp/9526/">https://plotly.com/9526/~jackp/</a>

MATLAB is a registered trademark of The MathWorks, Inc.