query regarding rotating a vector

Asked by himansu on 4 Aug 2012
Latest activity Answered by Jan Simon on 19 Aug 2012
 u = [1 -2 -3; -2 4 -7];
 v = [-3 2 1; -2 -1 -2];
AB =  quiver(u,v);

'AB' draws the elements of the vector 'u' and 'v'

now i want to rotate the angle of each element ( e.g by 10 degrees)

how will i do it ? / what would be the code for it ?

[ i followed this ( http://www.mathworks.nl/matlabcentral/answers/11195-rotating-a-vector) but couldn't work it out. ]

thanks in advance ....

0 Comments

himansu

Products

No products are associated with this question.

1 Answer

Answer by Jan Simon on 19 Aug 2012

You cannot "rotate an angle". You can rotate a vector around an axis by an angle only. Therefore you have to define the axes of rotation at first. Then the creation of the rotation matrix is not complicated.

0 Comments

Jan Simon

Contact us