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.

2camtarget<br />

Purpose Set or query the location of the camera target<br />

Syntax camtarget<br />

camtarget([camera_target])<br />

camtarget('mode')<br />

camtarget('auto')<br />

camtarget('manual')<br />

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

camtarget<br />

Description The camera target is the location in the axes that the camera points to. The<br />

camera remains oriented toward this point regardless of its position.<br />

camtarget with no arguments returns the location of the camera target in the<br />

current axes.<br />

camtarget([camera_target]) sets the camera target in the current axes to<br />

the specified value. Specify the target as a three-element vector containing the<br />

x-, y-, and z-coordinates of the desired location in the data units of the axes.<br />

camtarget('mode') returns the value of the camera target mode, which can be<br />

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

camtarget('auto') sets the camera target mode to auto.<br />

camtarget('manual') sets the camera target mode to manual.<br />

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

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

camtarget operates on the current axes.<br />

Remarks camtarget sets or queries values of the axes object Cameratarget and<br />

CameraTargetMode properties.<br />

When the camera target mode is auto, <strong>MATLAB</strong> positions the camera target<br />

at the center of the axes plot box.<br />

Examples This example moves the camera position and the camera target along the<br />

x-axis in a series of steps:<br />

surf(peaks);<br />

2-201

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

Saved successfully!

Ooh no, something went wrong!