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 Propertiesgraphics object displayed in the axes. For 3-D views, the active area is definedby a rectangle that encloses the axes.Define this routine as a string that is a valid <strong>MATLAB</strong> expression or the nameof an M-file. The expression executes in the <strong>MATLAB</strong> workspace.CameraPosition [x, y, z] axes coordinatesThe location of the camera. This property defines the position from which thecamera views the scene. Specify the point in axes coordinates.If you fix CameraViewAngle, you can zoom in and out on the scene by changingthe CameraPosition, moving the camera closer to the CameraTarget to zoom inand farther away from the CameraTarget to zoom out. As you change theCameraPosition, the amount of perspective also changes, if Projection isperspective. You can also zoom by changing the CameraViewAngle; however,this does not change the amount of perspective in the scene.CameraPositionMode {auto} | manualAuto or manual CameraPosition. When set to auto, <strong>MATLAB</strong> automaticallycalculates the CameraPosition such that the camera lies a fixed distance fromthe CameraTarget along the azimuth and elevation specified by view. Setting avalue for CameraPosition sets this property to manual.CameraTarget [x, y, z] axes coordinatesCamera aiming point. This property specifies the location in the axes that thecamera points to. The CameraTarget and the CameraPosition define the vector(the view axis) along which the camera looks.CameraTargetMode{auto} | manualAuto or manual CameraTarget placement. When this property is auto,<strong>MATLAB</strong> automatically positions the CameraTarget at the centroid of the axesplotbox. Specifying a value for CameraTarget sets this property to manual.CameraUpVector [x, y, z] axes coordinatesCamera rotation. This property specifies the rotation of the camera around theviewing axis defined by the CameraTarget and the CameraPosition properties.Specify CameraUpVector as a three-element array containing the x, y, and zcomponents of the vector. For example, [0 1 0] specifies the positive y-axis asthe up direction.2-17

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

Saved successfully!

Ooh no, something went wrong!