Hello,
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, ...],"
Thanks

 Respuesta aceptada

James Tursa
James Tursa el 17 de Mzo. de 2020
Editada: James Tursa el 17 de Mzo. de 2020

0 votos

See these posts for discussions of the MATLAB quaternion convention:
If they don't answer your questions then feel free to post some follow-up questions here in this thread.

3 comentarios

James Mulhern
James Mulhern el 18 de Mzo. de 2020
Editada: James Mulhern el 18 de Mzo. de 2020
Your referneces did help to expain my issues. I would also like to point out that my creation of the quaternion was incorrect becasue it is not normalized to 1. The quaternions should take the form
James Tursa
James Tursa el 19 de Mzo. de 2020
I presume you meant Y * S in the 3rd spot instead of Y * X.
James Mulhern
James Mulhern el 19 de Mzo. de 2020
Good catch. I updated it.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Aerospace Applications en Centro de ayuda y File Exchange.

Productos

Versión

R2018b

Preguntada:

el 17 de Mzo. de 2020

Comentada:

el 19 de Mzo. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by