-
大小: 81KB文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2021-01-11
- 語言: Matlab
- 標(biāo)簽: 歐拉角??旋轉(zhuǎn)矩陣??
資源簡介
matlab代碼程序,根據(jù)旋轉(zhuǎn)矩陣,按照x-y-z三個(gè)軸向求解歐拉角。
代碼片段和文件信息
function?eulerAngles?=?rotationMatrix2eulerAngles(R)
%?eulerAngles?=?rotationMatrix2eulerAngles(R)
%
%?This?function?returns?the?rotation?angles?in?degrees?about?the?x?y?and?z?axis?for?a
%?given?rotation?matrix
%?
%?Copyright?:?This?code?is?written?by?david?zhao?from?SCUT1257650237@qqcom.?The?code
%??????????????may?be?used?modified?and?distributed?for?research?purposes?with
%??????????????acknowledgement?of?the?author?and?inclusion?this?copyright?information.
%
%?Disclaimer?:?This?code?is?provided?as?is?without?any?warrantly.
if?abs(R(31))?~=?1
????theta1?=?-asin(R(31));
????theta2?=?pi?-?theta1;
????psi1?=?atan2(R(32)/cos(theta1)?R(33)/cos(theta1));
????psi2?=?atan2(R(32)/cos(theta2)?R(33)/cos(theta2));
????pfi1?=?atan2(R(21)/cos(theta1)?R(11)/cos(theta
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????94905??2014-04-14?10:58??rotationMatrix2eulerAngles\euler.pdf
?????文件????????250??2014-04-14?20:52??rotationMatrix2eulerAngles\readme.txt
?????文件???????1348??2014-04-14?20:45??rotationMatrix2eulerAngles\rotationMatrix2eulerAngles.m
?????目錄??????????0??2014-04-14?20:45??rotationMatrix2eulerAngles
-----------?---------??----------?-----??----
????????????????96503????????????????????4
評論
共有 條評論