12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

camupPurpose2camupSet or query the camera up vectorSyntaxDescriptioncamupcamup([up_vector])camup('mode')camup('auto')camup('manual')camup(axes_handle,...)The camera up vector specifies the direction that is oriented up in the scene.camup with no arguments returns the camera up vector setting in the currentaxes.camup([up_vector]) sets the up vector in the current axes to the specifiedvalue. Specify the up vector as x-, y-, and z-components. See Remarks.camup('mode') returns the current value of the camera up vector mode, whichcan be either auto (the default) or manual.camup('auto') sets the camera up vector mode to auto. In auto mode,<strong>MATLAB</strong> uses a value for the up vector of [0 1 0] for 2-D views. This meansthe z-axis points up.camup('manual') sets the camera up vector mode to manual. In manual mode,<strong>MATLAB</strong> does not change the value of the camera up vector.camup(axes_handle,...) performs the set or query on the axes identified bythe first argument, axes_handle. When you do not specify an axes handle,camup operates on the current axes.Remarkscamup sets or queries values of the axes object CameraUpVector andCameraUpVectorMode properties.Specify the camera up vector as the x-, y-, and z-coordinates of a point in theaxes coordinate system that forms the directed line segment PQ, where P is thepoint (0,0,0) and Q is the specified x-, y-, and z-coordinates. This line alwayspoints up. The length of the line PQ has no effect on the orientation of the scene.This means a value of [0 0 1] produces the same results as [0 0 25].2-66

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

Saved successfully!

Ooh no, something went wrong!