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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.