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.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.