Main Content

Quaternion Conjugate

Calculate conjugate of quaternion

  • Quaternion Conjugate block

Libraries:
Aerospace Blockset / Utilities / Math Operations

Description

The Quaternion Conjugate block calculates the conjugate for a given quaternion. Aerospace Blockset™ uses quaternions that are defined using the scalar-first convention. For more information on quaternion forms, see Algorithms

Ports

Input

expand all

Quaternions in the form of [q0, r0, ... , q1, r1, ... , q2, r2, ... , q3, r3, ...], specified as a quaternion or vector.

Data Types: double | bus

Output

expand all

Quaternion conjugates in the form of [q0′, r0′, ... , q1′, r1′, ... , q2′, r2′, ... , q3′, r3′, ...], returned as a quaternion or vector.

Data Types: double | bus

Algorithms

The quaternion has the form of

q=q0+iq1+jq2+kq3.

The quaternion conjugate has the form of

q=q0iq1jq2kq3.

References

[1] Stevens, Brian L., Frank L. Lewis. Aircraft Control and Simulation, Second Edition. Hoboken, NJ: Wiley–Interscience.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced before R2006a