23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

camdolly<br />

Remarks camdolly sets the axes CameraPosition and CameraTarget properties, which<br />

in turn causes the CameraPositionMode and CameraTargetMode properties to<br />

be set to manual.<br />

Examples This example moves the camera along the x- and y-axes in a series of steps.<br />

surf(peaks)<br />

axis vis3d<br />

t = 0:pi/20:2*pi;<br />

dx = sin(t)./40;<br />

dy = cos(t)./40;<br />

for i = 1:length(t);<br />

camdolly(dx(i),dy(i),0)<br />

drawnow<br />

end<br />

See Also axes, campos, camproj, camtarget, camup, camva<br />

The axes properties CameraPosition, CameraTarget, CameraUpVector,<br />

CameraViewAngle, Projection<br />

See Defining Scenes with Camera Graphics for more information on camera<br />

properties.<br />

2-189

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!