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.

2campos<br />

Purpose Set or query the camera position<br />

Syntax campos<br />

campos([camera_position])<br />

campos('mode')<br />

campos('auto'<br />

campos('manual')<br />

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

Description campos with no arguments returns the camera position in the current axes.<br />

campos<br />

campos([camera_position]) sets the position of the camera in the current<br />

axes to the specified value. Specify the position as a three-element vector<br />

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

of the axes.<br />

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

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

campos('auto') sets the camera position mode to auto.<br />

campos('manual') sets the camera position mode to manual.<br />

campos(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 />

campos operates on the current axes.<br />

Remarks campos sets or queries values of the axes CameraPosition and<br />

CameraPositionMode properties. The camera position is the point in the<br />

Cartesian coordinate system of the axes from which you view the scene.<br />

Examples This example moves the camera along the x-axis in a series of steps:<br />

surf(peaks)<br />

axis vis3d off<br />

for x = −200:5:200<br />

campos([x,5,10])<br />

drawnow<br />

end<br />

2-197

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

Saved successfully!

Ooh no, something went wrong!