camva
a = camva
camva(angle)
camva('auto')
camva('manual')
mode = camva('mode')
camva(ax, ...)
| 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). |
| Parameter | Description |
|---|---|
| a | the current camera view angle in degrees. |
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.
f = figure();
surf(peaks(40), 'EdgeColor', 'none');
camproj('perspective');
camva(30);
| Version | Description |
|---|---|
| 2.0.0 | initial version |