I am just starting to work with quaterions and I am currently confused as to how they are defined in Simulink. From what I have read so far are have a basic understanding of how they can be used to define rotations in 3D space. I understand the mathmatical form of a+bi+cj+dk, I just don't undestand how they are inplemented in matlab.
I would like to define a quaternion by specifing an axis + angle and then building the quaternion. I assumed that it would be as simple as using a mux block with the angle first and then the three elements of the vector. However this does not seam to be the case.
I ran this test and it does not show the same results.
Can anyone help explain where I went wrong. Or help explain the following deffintion from the doc page.
"Quaternions in the form of [q0, r0, ..., q1, r1, ... , q2, r2, ... , q3, r3, ...],"