Main Content

quatexp

Exponential of quaternion

Description

qe=quatexp(q) calculates the exponential, qe, for the specified quaternion, q.

Aerospace Toolbox uses quaternions that are defined using the scalar-first convention.

example

Examples

collapse all

This example shows how to calculate the exponentials of quaternion matrix [0 0 0.7854 0].

qe = quatexp([0 0 0.7854 0])
qe = 1×4

    0.7071         0    0.7071         0

Input Arguments

collapse all

Quaternions for which to calculate exponentials, specified as an M-by-4 matrix containing M quaternions.

Data Types: double

Output Arguments

collapse all

Exponential of quaternion.

References

[1] Dam, Erik B., Martin Koch, Martin Lillholm. "Quaternions, Interpolation, and Animation." University of Copenhagen, København, Denmark, 1998.

Version History

Introduced in R2016a