Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

How to use the MATLAB command "rotate"?

Status
Not open for further replies.

waitingforme

Newbie level 5
Joined
Jan 16, 2005
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
61
rotate matlab

how to use the MATLAB command "rotate" to rotate a 3D object in MATLAB?
 

footprint

Member level 5
Joined
May 5, 2004
Messages
86
Helped
8
Reputation
16
Reaction score
2
Trophy points
1,288
Activity points
596
matlab rotate

U can type "help rotate" in MATLAB to get help. here is the help content:

ROTATE Rotate objects about specified origin and direction.
ROTATE(H,[THETA PHI],ALPHA) rotates the objects with handles H
through angle ALPHA about an axis described by the 2-element
direction vector [THETA PHI] (spherical coordinates).
All the angles are in degrees. The handles in H must be children
of the same axes.

THETA is the angle in the xy plane counterclockwise from the
positive x axis. PHI is the elevation of the direction vector
from the xy plane (see also SPH2CART). Positive ALPHA is defined
as the righthand-rule angle about the direction vector as it
extends from the origin.

ROTATE(H,[X Y Z],ALPHA) rotates the objects about the direction
vector [X Y Z] (Cartesian coordinates). The direction vector
is the vector from the center of the plot box to (X,Y,Z).

ROTATE(...,ORIGIN) uses the point ORIGIN = [x0,y0,y0] as
the center of rotation instead of the center of the plot box.

See also SPH2CART, CART2SPH.
 
Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top