mrdivide, /
R2026bQuaternion right division for scalars
Syntax
Description
Examples
Create a 2-by-1 quaternion array, and right divide it by a real scalar.
A = quaternion([1:4;5:8])
A = 2×1 quaternion array
1 + 2i + 3j + 4k
5 + 6i + 7j + 8k
B = 2; C = A/B
C = 2×1 quaternion array
0.5 + 1i + 1.5j + 2k
2.5 + 3i + 3.5j + 4kCreate a 2-by-2 quaternion array, and right divide it by a quaternion scalar.
q1 = quaternion(magic(4)); A = reshape(q1,2,2)
A = 2×2 quaternion array
16 + 2i + 3j + 13k 9 + 7i + 6j + 12k
5 + 11i + 10j + 8k 4 + 14i + 15j + 1k
B = quaternion([1:4])
B = quaternion
1 + 2i + 3j + 4k
C = A/B
C = 2×2 quaternion array
2.7 - 0.1i - 2.1j - 1.7k 2.9667 + 0.033333i - 0.56667j - 1.1k
2.9667 - 0.5i + 0.76667j - 0.83333k 2.7 - 1.7i + 1.9j - 0.9kInput Arguments
Divisor, specified as a quaternion object, an
array of quaternion objects, a real numeric scalar, or an array of real
numbers. Numeric values must be of data type single or
double.
At least one of A and B must a
scalar.
Dividend, specified as a quaternion object, an
array of quaternion objects, a real numeric scalar, or an array of real
numbers. Numeric values must be of data type single or
double.
At least one of A and B must a
scalar.
Output Arguments
Result of quaternion right division, returned as a quaternion object or an
array of quaternion objects.
Algorithms
Given a quaternion and a real numeric scalar p,
Note
For a real numeric scalar p, A/p =
p\A.
Given two quaternions A and B,
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
GPU Code Generation
Generate CUDA® code for NVIDIA® GPUs using GPU Coder™.
MATLAB Command
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.
Amerika
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)