Quaternion Function Reference

times

.* Array multiply
(Quaternion and octonion overloadings of standard MATLAB® function)

Syntax

Y = A .* B

Description

This function implements the quaternion elementwise product. The two operands must be the same size, or one must be a scalar quaternion.

Examples

>> [qi qj qk] .* [qj qk qi]
 
ans = 1x3 quaternion array
 
>> show(ans)
 
ans.S =
 
     0     0     0

ans.X =
 
     0     1     0

ans.Y =
 
     0     0     1

ans.Z =
 
     1     0     0

See Also

QTFM function: mtimes
MATLAB® function: times

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

License terms.