12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

streamlineor[stepsize, max_number_vertices]If you do not specify values, <strong>MATLAB</strong> uses the default:• stepsize = 0.1 (one tenth of a cell)• naximum number of vertices = 1000ExamplesThis example draws stream lines from data representing air currents over aregion of North America. Loading the wind data set creates the variables x, y,z, u, v, and w in the <strong>MATLAB</strong> workspace.The plane of stream lines indicates the flow of air from the west to the east (thex direction) beginning at x = 80 (which is close to the minimum value of the xcoordinates). The y and z coordinate starting points are multivalued andapproximately span the range of these coordinates. meshgrid generates thestarting positions of the stream lines.load wind[sx,sy,sz] = meshgrid(80,20:10:50,0:5:15);h = streamline(x,y,z,u,v,w,sx,sy,sz);set(h,'Color','red')view(3)See Alsostream2, stream3, coneplot, isosurface, smooth3, subvolume, reducevolume2-463

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!