์ฑ„ํƒ๋œ ๋‹ต๋ณ€

KSSV
KSSV 2018๋…„ 9์›” 27์ผ

1 ๊ฐœ ์ถ”์ฒœ

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

KSSV
KSSV 2018๋…„ 9์›” 27์ผ
Fredrik Tveita commented: Thank you so much.
KSSV
KSSV 2018๋…„ 9์›” 27์ผ
Thanks is accepting and voting the answer..:)

๋Œ“๊ธ€์„ ๋‹ฌ๋ ค๋ฉด ๋กœ๊ทธ์ธํ•˜์‹ญ์‹œ์˜ค.

์ถ”๊ฐ€ ๋‹ต๋ณ€ (0๊ฐœ)

์นดํ…Œ๊ณ ๋ฆฌ

๋„์›€๋ง ์„ผํ„ฐ ๋ฐ File Exchange์—์„œ MATLAB์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

์ œํ’ˆ

ํƒœ๊ทธ

์งˆ๋ฌธ:

2018๋…„ 9์›” 27์ผ

๋Œ“๊ธ€:

2018๋…„ 9์›” 27์ผ

Community Treasure Hunt

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

Start Hunting!

Translated by