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.

2camup<br />

Purpose Set or query the camera up vector<br />

Syntax camup<br />

camup([up_vector])<br />

camup('mode')<br />

camup('auto')<br />

camup('manual')<br />

camup(axes_handle,...)<br />

Description The camera up vector specifies the direction that is oriented up in the scene.<br />

camup<br />

camup with no arguments returns the camera up vector setting in the current<br />

axes.<br />

camup([up_vector]) sets the up vector in the current axes to the specified<br />

value. Specify the up vector as x-, y-, and z-components. See Remarks.<br />

camup('mode') returns the current value of the camera up vector mode, which<br />

can be either auto (the default) or manual.<br />

camup('auto') sets the camera up vector mode to auto. In auto mode,<br />

<strong>MATLAB</strong> uses a value for the up vector of [0 1 0] for 2-D views. This means<br />

the z-axis points up.<br />

camup('manual') sets the camera up vector mode to manual. Inmanual mode,<br />

<strong>MATLAB</strong> does not change the value of the camera up vector.<br />

camup(axes_handle,...) performs the set or query on the axes identified by<br />

the first argument, axes_handle. When you do not specify an axes handle,<br />

camup operates on the current axes.<br />

Remarks camup sets or queries values of the axes object CameraUpVector and<br />

CameraUpVectorMode properties.<br />

Specify the camera up vector as the x-, y-, and z-coordinates of a point in the<br />

axes coordinate system that forms the directed line segment PQ, where P is the<br />

point (0,0,0) and Q is the specified x-, y-, and z-coordinates. This line always<br />

points up. The length of the line PQ has no effect on the orientation of the<br />

scene. This means a value of [0 0 1] produces the same results as [0 0 25].<br />

2-203

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

Saved successfully!

Ooh no, something went wrong!