Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
25
Добавлен:
09.02.2015
Размер:
500.22 Кб
Скачать

Volume array.

SLICE(X,Y,Z,V,XI,YI,ZI) draws slices through the volume V along the

surface defined by the arrays XI,YI,ZI.

SLICE(V,Sx,Sy,Sz) or SLICE(V,XI,YI,ZI) assumes X=1:N, Y=1:M, Z=1:P.

SLICE(...,'method') specifies the interpolation method to use.

'method' can be 'linear', 'cubic', or 'nearest'. 'linear' is the

default (see INTERP3).

SLICE(AX,...) plots into AX instead of GCA.

H = SLICE(...) returns a vector of handles to SURFACE objects.

The axes CLim property is set to span the finite values of V.

Example: To visualize the function x*exp(-x^2-y^2-z^2) over the

range -2 < x < 2, -2 < y < 2, -2 < z < 2,

[x,y,z] = meshgrid(-2:.2:2, -2:.25:2, -2:.16:2);

v = x .* exp(-x.^2 - y.^2 - z.^2);

slice(x,y,z,v,[-1.2 .8 2],2,[-2 -.2])

See also meshgrid, interp3.

Reference page in Help browser

doc slice

<streamline> - Streamlines from 2D or 3D vector data.

STREAMLINE Streamlines from 2D or 3D vector data.

STREAMLINE(X,Y,Z,U,V,W,STARTX,STARTY,STARTZ) creates streamlines

from 3D vector data U,V,W. The arrays X,Y,Z define the coordinates for

U,V,W and must be monotonic and 3D plaid (as if produced by MESHGRID).

STARTX, STARTY, and STARTZ define the starting positions of the stream

lines.

STREAMLINE(U,V,W,STARTX,STARTY,STARTZ) assumes

[X Y Z] = meshgrid(1:N, 1:M, 1:P) where [M,N,P]=SIZE(U).

STREAMLINE(XYZ) assumes XYZ is a precomputed cell array of vertex

arrays (as if produced by STREAM3).

STREAMLINE(X,Y,U,V,STARTX,STARTY) creates streamlines from 2D

Vector data u,V. The arrays X,y define the coordinates for u,V and

must be monotonic and 2D plaid (as if produced by MESHGRID). STARTX

and STARTY define the starting positions of the streamlines. A vector

of line handles is returned.

STREAMLINE(U,V,STARTX,STARTY) assumes

[X Y] = meshgrid(1:N, 1:M) where [M,N]=SIZE(U).

STREAMLINE(XY) assumes XY is a precomputed cell array of vertex

arrays (as if produced by STREAM2).

STREAMLINE(AX,...) plots into AX instead of GCA.

STREAMLINE(...,OPTIONS) specifies the options used in creating

the streamlines. OPTIONS is specified as a one or two element vector

containing the step size and maximum number of vertices in a stream

line. If OPTIONS is not specified the default step size is 0.1 (one

tenth of a cell) and the default maximum number of vertices is

10000. OPTIONS can either be [stepsize] or [stepsize maxverts].

H = STREAMLINE(...) returns a vector of line handles.

Example:

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 also stream3, stream2, coneplot, isosurface, smooth3, subvolume,

reducevolume.

Reference page in Help browser

doc streamline

<stream3> - 3D streamlines.

STREAM3 3D streamlines.

XYZ = STREAM3(X,Y,Z,U,V,W,STARTX,STARTY,STARTZ) computes streamlines

from vector data U,V,W. The arrays X,Y,Z define the coordinates for

U,V,W and must be monotonic and 3D plaid (as if produced by MESHGRID).

STARTX, STARTY, and STARTZ define the starting positions of the stream

lines. A cell array of vertex arrays is returned in XYZ.

XYZ = STREAM3(U,V,W,STARTX,STARTY,STARTZ) assumes

[X Y Z] = meshgrid(1:N, 1:M, 1:P) where [M,N,P]=SIZE(U).

XYZ = STREAM3(...,OPTIONS) specifies the options used in creating the

streamlines. OPTIONS is specified as a one or two element vector

containing the step size and maximum number of vertices in a stream

line. If OPTIONS is not specified the default step size is 0.1 (one

tenth of a cell) and the default maximum number of vertices is

10000. OPTIONS can either be [stepsize] or [stepsize maxverts].

Example:

load wind

[sx sy sz] = meshgrid(80, 20:10:50, 0:5:15);

streamline(stream3(x,y,z,u,v,w,sx,sy,sz));

view(3);

See also streamline, stream2, coneplot, isosurface, smooth3, subvolume,

reducevolume.

Reference page in Help browser

doc stream3

<stream2> - 2D streamlines.

STREAM2 2D streamlines.

XY = STREAM2(X,Y,U,V,STARTX,STARTY) computes streamlines from vector

data U,V. The arrays X,Y define the coordinates for U,V and must be

monotonic and 2D plaid (as if produced by MESHGRID). STARTX and

STARTY define the starting positions of the streamlines. A cell array

of vertex arrays is returned in XY.

XY = STREAM2(U,V,STARTX,STARTY) assumes [X Y] = meshgrid(1:N, 1:M)

where[M,N]=SIZE(U).

XY = STREAM2(...,OPTIONS) specifies the options used in creating the

streamlines. OPTIONS is specified as a one or two element vector

containing the step size and maximum number of vertices in a stream

line. If OPTIONS is not specified the default step size is 0.1 (one

tenth of a cell) and the default maximum number of vertices is

10000. OPTIONS can either be [stepsize] or [stepsize maxverts].

Example:

load wind

[sx sy] = meshgrid(80, 20:10:50);

streamline(stream2(x(:,:,5),y(:,:,5),u(:,:,5),v(:,:,5),sx,sy));

See also streamline, stream3, coneplot, isosurface, smooth3, subvolume,

reducevolume.

Reference page in Help browser

doc stream2

<quiver3> - 3D quiver plot.

QUIVER3 3-D quiver plot.

QUIVER3(X,Y,Z,U,V,W) plots velocity vectors as arrows with components

(u,v,w) at the points (x,y,z). The matrices X,Y,Z,U,V,W must all be

the same size and contain the corresponding position and velocity

components. QUIVER3 automatically scales the arrows to fit.

QUIVER3(Z,U,V,W) plots velocity vectors at the equally spaced

surface points specified by the matrix Z.

QUIVER3(Z,U,V,W,S) or QUIVER3(X,Y,Z,U,V,W,S) automatically

scales the arrows to fit and then stretches them by S.

Use S=0 to plot the arrows without the automatic scaling.

QUIVER3(...,LINESPEC) uses the plot linestyle specified for

the velocity vectors. Any marker in LINESPEC is drawn at the base

Соседние файлы в папке Библиотеки Matlab