Quaternion Function Reference

V/VECTOR

Vector component of a quaternion

Syntax

r = v(q), r = vector(q)

Description

These two functions extract the vector component of a quaternion. The result is always a pure quaternion. The two functions are synonyms.

Examples

>> q = randq(2)
 
q = 2x2 quaternion array
 
>> v(q)
 
ans = 2x2 pure quaternion array
 
>> vector(q) == v(q)

ans =

     1     1
     1     1

See Also

QTFM functions: s, scalar, x, y, z

© 2008-2013 Stephen J. Sangwine and Nicolas Le Bihan

License terms.