camva
Set or query camera view angle
Syntax
camva
camva(view_angle)
camva('mode')
camva('auto')
camva('manual')
camva(axes_handle,...)
Description
camva
returns the camera view angle setting in the current axes. The camera view angle determines the field of view of the camera. Larger angles produce a smaller view of the scene. Implement zooming by changing the camera view angle.
camva(view_angle)
sets the view angle in the current axes to the specified value. Specify the view angle in degrees.
camva('mode')
returns the current value of the camera view angle mode, which can be eitherauto
(the default) ormanual
.
camva('auto')
sets the camera view angle mode toauto
.
camva('manual')
sets the camera view angle mode tomanual
.
camva(axes_handle,...)
performs the set or query on the axes identified by the first argument,axes_handle
. When you do not specify an axes handle,camva
operates on the current axes.
Tips
Thecamva
function sets or queries values of the axes objectCameraViewAngle
andCameraViewAngleMode
properties.
When the camera view angle mode isauto
, the camera view angle adjusts so that the scene fills the available space in the window. If you move the camera to a different position, the camera view angle changes to maintain a view of the scene that fills the available area in the window.
Setting a camera view angle or setting the camera view angle tomanual
disables the MATLAB®stretch-to-fill feature (stretching of the axes to fit the window). This means setting the camera view angle to its current value,
camva(camva)
axes
for more information.