times, .*
Syntax
Description
returns the element-by-element quaternion multiplication of quaternion
arrays.quatC
= A
.*B
You can use quaternion multiplication to compose rotation operators:
To compose a sequence of frame rotations, multiply the quaternions in the same order as the desired sequence of rotations. For example, to apply a p quaternion followed by a q quaternion, multiply in the order pq. The rotation operator becomes , where v represents the object to rotate in quaternion form. * represents conjugation.
To compose a sequence of point rotations, multiply the quaternions in the reverse order of the desired sequence of rotations. For example, to apply a p quaternion followed by a q quaternion, multiply in the reverse order, qp. The rotation operator becomes .
Examples
Input Arguments
Output Arguments
Algorithms
References
[1] Kuipers, Jack B. Quaternions and Rotation Sequences: A Primer with Applications to Orbits, Aerospace, and Virtual Reality. Princeton, NJ: Princeton University Press, 2007.
Extended Capabilities
Version History
Introduced in R2020b