how to get new coordinatesof the point[2,1,3],if a vector with endpoint[2,1,3] is rotated 30 around the Z-axis followed by 60 around the x-axis.all rotations are counter clockwise.

Answers (1)

Nikhil, if you want to rotate vectors (rather than the coordinate system) use the rotz and rotx commands. As an example:
rotz(30)*[2;1;3]
If, on the other hand, you need to rotate a reference frame (to find the vector components in a different frame), check out this answer .

This question is closed.

Asked:

on 6 Feb 2014

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!