streamparticlesThis example uses streamlines in the
z = 5plane to animate the flow along these lines with stream particles.
load wind
figure
daspect([1,1,1]);
view(2)
[verts,averts] = streamslice(x,y,z,u,v,w,[],[],5);
sl = streamline([verts averts]);
axis tight manual off;
set(sl,'Visible','off')
iverts = interpstreamspeed(x,y,z,u,v,w,verts,.05);
zlim([4.9,5.1]);
streamparticles(iverts, 200, ...
'Animate',15,'FrameRate',40, ...
'MarkerSize',10,'MarkerFaceColor',[0 .5 0])
fig2plotly()