camva
Gets or sets the camera view angle of the current axes.
Category: Graphics > Formatting and Annotation
Syntax
camva(angle)
Sets the view angle, in degrees.
angle = camva
Returns the current angle.
camva('auto')
Restores the automatic angle.
Description
The view angle is the opening of the camera lens. A smaller angle zooms in and a larger one zooms out, like changing the focal length of a lens, without moving the camera. camzoom changes it by a factor.
Input arguments
angle- Positive scalar in degrees, below 180.
Output arguments
angle- Current view angle in degrees.
Example
Setting the angle
surf(peaks(10))
camva(20)
disp(camva)
Output
20