Power of quaternion



qp=quatpower(q,pow) calculates q to the power of pow for a normalized quaternion, q.

qt=exp(tlog(q)), with tR.


collapse all

Calculate the power of 2 of quaternion q = [1.0 0 1.0 0].

qp = quatpower(quatnormalize([1.0 0 1.0 0]),2)
qp =

   -0.0000         0    1.0000         0

Input Arguments

collapse all

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

Data Types: double

Power to which to calculate quaternion power, specified as an M-by-1 vector containing M power scalars.

Data Types: double

Output Arguments

collapse all

Power of quaternion.

Introduced in R2016a