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 apquaternion followed by aqquaternion, multiply in the order魁人党. The rotation operator becomes , wherevrepresents 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 apquaternion followed by aqquaternion, 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 R2018b