23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

coneplot<br />

2coneplot<br />

Purpose Plot velocity vectors as cones in a 3-D vector field<br />

Syntax coneplot(X,Y,Z,U,V,W,Cx,Cy,Cz)<br />

coneplot(U,V,W,Cx,Cy,Cz)<br />

coneplot(...,s)<br />

coneplot(...,color)<br />

coneplot(...,'quiver')<br />

coneplot(...,'method')<br />

coneplot(X,Y,Z,U,V,W,'nointerp')<br />

h = coneplot(...)<br />

Description coneplot(X,Y,Z,U,V,W,Cx,Cy,Cz) plots velocity vectors as cones pointing in<br />

the direction of the velocity vector and having a length proportional to the<br />

magnitude of the velocity vector.<br />

2-304<br />

• X, Y, Z define the coordinates for the vector field.<br />

• U, V, W define the vector field. These arrays must be the same size, monotonic,<br />

and 3-D plaid (such as the data produced by meshgrid).<br />

• Cx, Cy, Cz define the location of the cones in vector field. The section "Starting<br />

Points for Stream Plots" in Visualization Techniques provides more<br />

information on defining starting points.<br />

coneplot(U,V,W,Cx,Cy,Cz) (omitting the X, Y, and Z arguments) assumes<br />

[X,Y,Z] = meshgrid(1:n,1:m,1:p) where [m,n,p]= size(U).<br />

coneplot(...,s) <strong>MATLAB</strong> automatically scales the cones to fit the graph and<br />

then stretches them by the scale factor s. If you do not specify a value for s,<br />

<strong>MATLAB</strong> uses a value of 1. Use s =0 to plot the cones without automatic<br />

scaling.<br />

coneplot(...,color) interpolates the array color onto the vector field and<br />

then colors the cones according to the interpolated values. The size of the color<br />

array must be the same size as the U, V, W arrays. This option works only with<br />

cones (i.e., not with the quiver option).<br />

coneplot(...,'quiver') draws arrows instead of cones (see quiver3 for an<br />

illustration of a quiver plot).

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

Saved successfully!

Ooh no, something went wrong!