12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

camtargetExamplesThis example moves the camera position and the camera target along thex-axis in a series of steps:surf(peaks);axis vis3dxp = linspace(−150,40,50);xt = linspace(25,50,50);for i=1:50campos([xp(i),25,5]);camtarget([xt(i),30,0])drawnowendSee Alsoaxis, camproj, campos, camup, camvaThe axes properties CameraPosition, CameraTarget, CameraUpVector,CameraViewAngle, Projection2-65

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

Saved successfully!

Ooh no, something went wrong!