input euler angles which outputs rotation matrix R
์กฐํ ์: 16 (์ต๊ทผ 30์ผ)
์ด์ ๋๊ธ ํ์
Hi , i have the euler angles ?, ?, ? which i want to input in a function which returns a rotation matrix R in matlab
๋๊ธ ์: 0
์ฑํ๋ ๋ต๋ณ
KSSV
2018๋
9์ 27์ผ
function R = RotationMatrix(phi,theta,psi)
p = phi ;
t = theta ;
s = psi ;
D = [cos(p) sin(p) 0 ; -sin(p) cos(p) 0 ; 0 0 1] ;
C = [1 0 0 ; 0 cos(t) sin(t) ; 0 -sin(t) cos(t)] ;
B = [cos(s) sin(s) 0 ; -sin(s) cos(s) 0 ; 0 0 1] ;
R = B*C*D ;
end
๋๊ธ ์: 2
์ถ๊ฐ ๋ต๋ณ (0๊ฐ)
์ฐธ๊ณ ํญ๋ชฉ
์นดํ ๊ณ ๋ฆฌ
Help Center ๋ฐ File Exchange์์ Data Processing and Visualization์ ๋ํด ์์ธํ ์์๋ณด๊ธฐ
์ ํ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!