C = A - B
subtracts quaternion B from quaternion A
using quaternion subtraction. Either A or
B may be a real number, in which case subtraction is
performed with the real part of the quaternion argument.
Addition and subtraction of real numbers is defined for quaternions as acting on the real part of the quaternion. Create a quaternion and then subtract 1 from the real part.
Input, specified as a quaternion object, an array of quaternion
objects of any dimensionality, a real scalar, or an array of real numbers of
any dimensionality. Numeric values must be of data type
single or double.
A and B must have compatible
sizes. In the simplest cases, they can be the same size or one can be a
scalar. Two inputs have compatible sizes if, for every dimension, the
dimension sizes of the inputs are the same or one of the dimensions is
1.
Input, specified as a quaternion object, an array of quaternion
objects of any dimensionality, a real scalar, or an array of real numbers of
any dimensionality. Numeric values must be of data type
single or double.
A and B must have compatible
sizes. In the simplest cases, they can be the same size or one can be a
scalar. Two inputs have compatible sizes if, for every dimension, the
dimension sizes of the inputs are the same or one of the dimensions is
1.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.