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.

Axes PropertiesThe default CameraUpVector is [0 0 1], which defines the positive z-axis as theup direction.CameraUpVectorMode {auto} | manualDefault or user-specified up vector. When CameraUpVectorMode is auto,<strong>MATLAB</strong> uses a value of [0 0 1] (positive z-direction is up) for 3-D views and[0 1 0] (positive y-direction is up) for 2-D views. Setting a value forCameraUpVector sets this property to manual.CameraViewAngle scalar greater than 0 and less than or equal to180 (angle in degrees)The field of view. This property determines the camera field of view. Changingthis value affects the size of graphics objects displayed in the axes, but does notaffect the degree of perspective distortion. The greater the angle, the larger thefield of view, and the smaller objects appear in the scene.CameraViewAngleMode{auto} | manualAuto or manual CameraViewAngle. When in auto mode, <strong>MATLAB</strong> setsCameraViewAngle to the minimum angle that captures the entire scene (up to180˚).The following table summarizes <strong>MATLAB</strong>’s automatic camera behavior.CameraViewAngleCameraTargetCameraPositionBehaviorauto auto auto CameraTarget is set to plot box centroid,CameraViewAngle is set to capture entire scene,CameraPosition is set along the view axis.auto auto manual CameraTarget is set to plot box centroid,CameraViewAngle is set to capture entire scene.auto manual auto CameraViewAngle is set to capture entire scene,CameraPosition is set along the view axis.auto manual manual CameraViewAngle is set to capture entire scene.manual auto auto CameraTarget is set to plot box centroid,CameraPosition is set along the view axis.2-18

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

Saved successfully!

Ooh no, something went wrong!