Set or query camera position
campos([camera_position]) sets the position of the camera in the current axes to the specified value. Specify the position as a three-element vector containing the x-, y-, and z-coordinates of the desired location in the data units of the axes.
campos sets or queries values of the axes CameraPosition and CameraPositionMode properties. The camera position is the point in the Cartesian coordinate system of the axes from which you view the scene.
Move the camera along the x-axis in a series of steps:
surf(peaks) axis vis3d off for x = -200:5:200 campos([x,5,10]) drawnow end