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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

otatePurpose2rotateRotate object about a specified directionSyntaxDescriptionrotate(h,direction,alpha)rotate(...,origin)The rotate function rotates a graphics object in three-dimensional space,according to the right-hand rule.rotate(h,direction,alpha) rotates the graphics object h by alpha degrees.direction is a two- or three-element vector that describes the axis of rotationin conjunction with the origin.rotate(...,origin) specifies the origin of the axis of rotation as athree-element vector. The default origin is the center of the plot box.RemarksThe graphics object you want rotated must be a child of the same axes. Theobject’s data is modified by the rotation transformation. This is in contrast toview and rotate3d, which only modify the viewpoint.The axis of rotation is defined by an origin and a point P relative to the origin.P is expressed as the spherical coordinates [theta phi], or as Cartesiancoordinates.ZoriginYaxis of rotationPXThe two-element form for direction specifies the axis direction using thespherical coordinates [theta phi]. theta is the angle in the xy plane2-425

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

Saved successfully!

Ooh no, something went wrong!