campan
Rotate the camera target around the position.
📝Syntax
campan(dtheta, dphi)
campan(dtheta, dphi, coordsys)
campan(ax, ...)
📥Input Arguments
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).
📄Description

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.

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