campan(dtheta, dphi)
campan(dtheta, dphi, coordsys)
campan(ax, ...)
| Parameter | Description |
|---|---|
| ax | a scalar graphics object value: an axes. |
| dtheta | horizontal rotation in degrees. |
| dphi | vertical rotation in degrees. |
| coordsys | 'data' (default, horizontal rotation about the z axis) or 'camera' (horizontal rotation about the camera up vector). |
campan rotates the camera target around the camera position, keeping the camera-to-target distance constant. This changes the direction the camera points without moving the camera itself.
f = figure();
surf(peaks(40), 'EdgeColor', 'none');
camproj('perspective');
campan(10, 0);
| Version | Description |
|---|---|
| 2.0.0 | initial version |