Quaterion Creation In Simulink
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
James Mulhern
le 17 Mar 2020
Commenté : James Mulhern
le 19 Mar 2020
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
0 commentaires
Réponse acceptée
James Tursa
le 17 Mar 2020
Modifié(e) : James Tursa
le 17 Mar 2020
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Unit Conversions dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
