%% Draw Streamlines Using Vertex Data
% Draw streamlines using the vertices returned by interpstreamspeed. Dot markers indicate the location of each vertex. Streamlines with widely spaced vertices indicate faster flow. Those with closely spaced vertices indicate slower flow.

load wind
[sx,sy,sz] = meshgrid(80,20:1:55,5);
verts = stream3(x,y,z,u,v,w,sx,sy,sz);
iverts = interpstreamspeed(x,y,z,u,v,w,verts,0.2);
sl = streamline(iverts);
set(sl,'Marker','.');
axis tight; 
view(2); 
daspect([1 1 1]);

% Copyright 2012 The MathWorks, Inc.