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

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

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

coneplot(...,'method') specifies the interpolation method to use. method<br />

can be: linear, cubic, nearest. linear is the default (see interp3 for a<br />

discussion of these interpolation methods)<br />

coneplot<br />

coneplot(X,Y,Z,U,V,W,'nointerp') does not interpolate the positions of the<br />

cones into the volume. The cones are drawn at positions defined by X, Y, Z and<br />

are oriented according to U, V, W. Arrays X, Y, Z, U, V, W must all be the same size.<br />

h = coneplot(...) returns the handle to the patch object used to draw the<br />

cones. You can use the set command to change the properties of the cones.<br />

Remarks coneplot automatically scales the cones to fit the graph, while keeping them<br />

in proportion to the respective velocity vectors.<br />

It is usually best to set the data aspect ratio of the axes before calling coneplot.<br />

You can set the ratio using the daspect command,<br />

daspect([1,1,1])<br />

Examples This example plots the velocity vector cones for vector volume data<br />

representing the motion of air through a rectangular region of space. The final<br />

graph employs a number of enhancements to visualize the data more<br />

effectively. These include:<br />

• Cone plots indicate the magnitude and direction of the wind velocity.<br />

• Slice planes placed at the limits of the data range provide a visual context for<br />

the cone plots within the volume.<br />

• Directional lighting provides visual queues as to the orientation of the cones.<br />

• View adjustments compose the scene to best reveal the information content<br />

of the data by selecting the view point, projection type, and magnification.<br />

1. Load and Inspect Data<br />

The winds data set contains six 3-D arrays: u, v, and w specify the vector<br />

components at each of the coordinate specified in x, y, and z. The coordinates<br />

define a lattice grid structure where the data is sampled within the volume.<br />

2-305

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

Saved successfully!

Ooh no, something went wrong!