camzoom(zf)
camzoom(ax, zf)
| 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. |
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.
f = figure();
surf(peaks(40), 'EdgeColor', 'none');
camproj('perspective');
camzoom(2);
| Version | Description |
|---|---|
| 2.0.0 | initial version |