Info

この質問は閉じられています。 編集または回答するには再度開いてください。

query regarding rotating a vector

1 回表示 (過去 30 日間)
himansu
himansu 2012 年 8 月 4 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 ....

回答 (1 件)

Jan
Jan 2012 年 8 月 19 日
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.

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by