- Minus
(Quaternion and octonion overloadings of standard MATLAB® function)
Y = A - B
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).
>> qi + qj + qk - 1 ans = -1 + 1 * I + 1 * J + 1 * K