camva
Set or query the camera view angle.
📝Syntax
camva
a = camva
camva(angle)
camva('auto')
camva('manual')
mode = camva('mode')
camva(ax, ...)
📥Input Arguments
Parameter Description
ax a scalar graphics object value: an axes.
angle the camera view angle in degrees, a real scalar in the range (0, 180).
📤Output Arguments
Parameter Description
a the current camera view angle in degrees.
📄Description

camva sets or queries the CameraViewAngle property of an axes.

The view angle is the field of view of the camera: a larger angle makes the scene appear smaller. With a perspective projection it controls the strength of the foreshortening. Specifying an angle switches CameraViewAngleMode to manual.

💡Examples
f = figure();
surf(peaks(40), 'EdgeColor', 'none');
camproj('perspective');
camva(30);
🔗See Also
camposcamzoomcamproj
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub