quatinv - Calculate inverse of quaternion

Syntax

n = quatinv(q)

Description

n = quatinv(q) calculates the inverse, n, for a given quaternion, q. Input q is an m-by-4 matrix containing m quaternions. n returns an m-by-4 matrix of inverses. Each element of q must be a real number. Additionally, q has its scalar number as the first column.

Examples

Determine the inverse of q = [1 0 1 0]:

qinv = quatinv([1 0 1 0])


qinv =

    0.5000         0   -0.5000         0

See Also

quatconj, quatdivide, quatmod, quatmultiply, quatnorm, quatnormalize, quatrotate

  


 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS