mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
286 stars 184 forks source link

Bug of rotation #82

Closed ryansterne closed 9 years ago

ryansterne commented 9 years ago

Hi: I try to define a rotation by a matrix.

The code is:

U=[1,1,1;1,1,1;1,1,1]
rotation('matrix',U)

Then, I get:

ans = rotation (show methods, plot)
  size: 1 x 1
  Bunge Euler angles in degree
  phi1  Phi phi2 Inv.
     0    0    0    0

However, this is wrong.

ralfHielscher commented 9 years ago

Hi Ryan,

the point is that the matrix you entered

1 1 1
1 1 1
1 1 1

is not a rotation matrix. Rotation matrices have determinant one. The determinant of your matrix is zero.

Ralf.

ryansterne commented 9 years ago

Hi Ralf: Thank you!