Move camera position and target
movetarget (default) — Move both the camera and the target.
fixtarget — Move only the camera.
camera (default) — Move in the coordinate system of the camera. dx moves left/right, dy moves down/up, and dz moves along the viewing axis. MATLAB normalizes the units to the scene.
For example, setting dx to 1 moves the camera to the right, which pushes the scene to the left edge of the box formed by the axes position rectangle. A negative value moves the scene in the other direction. Setting dz to 0.5 moves the camera to a position halfway between the camera position and the camera target.
pixels — Interpret dx and dy as pixel offsets and ignore dz.
data — Interpret dx, dy, and dz as offsets in axes data coordinates.
Move the camera along the x- and y-axes in a series of steps:
surf(peaks) axis vis3d t = 0:pi/20:4*pi; dx = sin(t)./40; dy = cos(t)./40; for i = 1:length(t); camdolly(dx(i),dy(i),0) drawnow end