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.

thetarotatecounterclockwise from the positive x-axis. phi is the elevation of the directionvector from the xy plane.ZPrYphiXThe three-element form for direction specifies the axis direction usingCartesian coordinates. The direction vector is the vector from the origin to(X,Y,Z).ExamplesRotate a graphics object 180° about the x-axis.h = surf(peaks(20));rotate(h,[1 0 0],180)Rotate a surface graphics object 45° about its center in the z direction.h = surf(peaks(20));zdir = [0 0 1];center = [10 10 0];rotate(h,zdir,45,center)RemarksSee Alsorotate changes the Xdata, Ydata, and Zdata properties of the appropriategraphics object.rotate3d, sph2cart, viewThe axes CameraPosition, CameraTarget, CameraUpVector, CameraViewAngle2-426

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

Saved successfully!

Ooh no, something went wrong!