Quaternion Function Reference

minus

- Minus
(Quaternion and octonion overloadings of standard MATLAB® function)

Syntax

Y = A - B

Description

This function implements the elementwise binary subtraction operator for quaternion arrays. It is implemented for both full and pure quaternions and will implicitly supply a zero scalar part when needed. It also will work where one of the operands is not a quaternion, for example to subtract a real or complex value from a quaternion (implicitly from the scalar part).

Examples

>> qi + qj + qk - 1
 
ans = -1 + 1 * I + 1 * J + 1 * K

See Also

MATLAB® function: minus
QTFM functions: uminus, plus

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

License terms.