camzoom
Zoom the camera in or out.
📝Syntax
camzoom(zf)
camzoom(ax, zf)
📥Input Arguments
Parameter Description
ax a scalar graphics object value: an axes.
zf the zoom factor, a positive real scalar. A value greater than 1 zooms in, a value less than 1 zooms out.
📄Description

camzoom zooms the camera by dividing the tangent of half the CameraViewAngle by the zoom factor, so the scene appears zf times larger, switching CameraViewAngleMode to manual.

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