我有旋转矩阵不正交。怎么了。我无法得到它。 外观= [ - 6.6861,12.6118,-8.0660,[ - 0.4467,-0.3168,0.2380] * PI/180];%#DEG 2弧度 %#数据旋转矩阵不正交
ax=Exterior(4);
by=Exterior(5);
cz=Exterior(6);
%#Rotation in X
Rx = [1 0 0
0 cos(ax) -sin(ax)
0 sin(ax) cos(ax)];
%#Rotation in Y
Ry = [cos(by) 0 sin(by)
0 1 0
-sin(by) 0 cos(by)];
%#Rotation in Z
Rz = [cos(cz) -sin(cz) 0
sin(cz) cos(cz) 0
0 0 1];
R=Rx*Ry*Rz;
%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% R =
0.99998 -0.0041538 -0.0055292
0.0041969 0.99996 0.0077962
0.0054966 -0.0078192 0.99995
正交检查
Inv(R)-R'= 2.2204e-016 2.6021e-018 8.6736e-019 0 1.1102e-016 -1.7347e-018 -2.6021e-018 3.4694e-018 2.2204e-016 R*R'= 2.2204e-016 2.6021e-018 8.6736e-019 0 1.1102e-016 -1.7347e-018 -2.6021e-018 3.4694e-018 2.2204e-016
为什么有不同的标志。???????
任何错误?
但是,我认为他们必须有相同的符号。 – Shahgee 2011-05-18 09:44:22
我不知道他们为什么会有相同的标志。 – idz 2011-05-18 10:01:16
@shahbaba:使用[double precision](http://en.wikipedia.org/wiki/Double_precision_floating-point_format)数字时,第16位有效数字的错误肯定是浮点舍入错误,这些可以发生在任一方向(正向或负向)。有关更多信息,请查看[此相关问题](http://stackoverflow.com/q/686439/52738),[本文](http://download.oracle.com/docs/cd/E19957-01/ 806-3568/ncg_goldberg.html)和[此MATLAB文档](http://www.mathworks.com/help/techdoc/ref/eps.html)。 – gnovice 2011-05-18 14:10:08