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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

streamlinePurpose2streamlineDraw stream lines from 2-D or 3-D vector dataSyntaxDescriptionh = streamline(X,Y,Z,U,V,W,startx,starty,startz)h = streamline(U,V,W,startx,starty,startz)h = streamline(XYZ)h = streamline(X,Y,U,V,startx,starty)h = streamline(U,V,startx,starty)h = streamline(XY)h = streamline(...,options)h = streamline(X,Y,Z,U,V,W,startx,starty,startz) draws stream linesfrom 3-D vector data U, V, W. The arrays X, Y, Z define the coordinates for U, V, Wand must be monotonic and 3-D plaid (such as the data produced by meshgrid).startx, starty, startz define the starting positions of the stream lines. Theoutput argument h contains a vector of line handles, one handle for eachstream line.h = streamline(U,V,W,startx,starty,startz) assumes the arrays X, Y, andZ are defined as [X,Y,Z] = meshgrid(1:N,1:M,1:P) where [M,N,P] =size(U).h = streamline(XYZ) assumes XYZ is a precomputed cell array of vertex arrays(as produced by stream3).h = streamline(X,Y,U,V,startx,starty) draws stream lines from 2-D vectordata U, V. The arrays X, Y define the coordinates for U, V and must be monotonicand 2-D plaid (such as the data produced by meshgrid). startx and startydefine the starting positions of the stream lines. The output argument hcontains a vector of line handles, one handle for each stream line.h = streamline(U,V,startx,starty) assumes the arrays X and Y are definedas [X,Y] = meshgrid(1:N,1:M) where [M,N] = size(U).h = streamline(XY) assumes XY is a precomputed cell array of vertex arrays(as produced by stream2).streamline(...,options) specifies the options used when creating thestream lines. Define options as a one or two element vector containing the stepsize or the step size and the maximum number of vertices in a stream line:[stepsize]2-462

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

Saved successfully!

Ooh no, something went wrong!