| Aerospace Toolbox | ![]() |
n = quatmod(q)
n = quatmod(q) calculates the modulus, n, for a given quaternion, q. Input q is an m-by-4 matrix containing m quaternions. n returns a column vector of m moduli. Each element of q must be a real number. Additionally, q has its scalar number as the first column.
Determine the modulus of q = [1 0 0 0]:
mod = quatmod([1 0 0 0])
mod =
1quatconj, quatdivide, quatinv, quatmultiply, quatnorm, quatnormalize, quatrotate
![]() | quatinv | quatmultiply | ![]() |
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |