Skip to Main Content Skip to Search
Product Documentation

quatnormalize - Normalize quaternion

Syntax

n = quatnormalize(q)

Description

n = quatnormalize(q) calculates the normalized quaternion, 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 normalized quaternions. Each element of q must be a real number. Additionally, q has its scalar number as the first column.

Examples

Normalize q = [1 0 1 0]:

normal = quatnormalize([1 0 1 0])


normal =

    0.7071         0    0.7071         0

See Also

quatconj | quatdivide | quatinv | quatmod | quatmultiply | quatnorm | quatrotate

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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