log
Natural logarithm of quaternion array
Syntax
Description
Examples
Logarithmic Values of Quaternion Array
Create a 3-by-1 quaternion array A.
A = quaternion(randn(3,4))
A = 3x1 quaternion array
0.53767 + 0.86217i - 0.43359j + 2.7694k
1.8339 + 0.31877i + 0.34262j - 1.3499k
-2.2588 - 1.3077i + 3.5784j + 3.0349k
Compute the logarithmic values of A.
B = log(A)
B = 3x1 quaternion array
1.0925 + 0.40848i - 0.20543j + 1.3121k
0.8436 + 0.14767i + 0.15872j - 0.62533k
1.6807 - 0.53829i + 1.473j + 1.2493k
Input Arguments
A
— Input array
scalar | vector | matrix | multidimensional array
Input array, specified as a scalar, vector, matrix, or multidimensional array.
Data Types: quaternion
Output Arguments
B
— Logarithm values
scalar | vector | matrix | multidimensional array
Quaternion natural logarithm values, returned as a scalar, vector, matrix, or multidimensional array.
Data Types: quaternion
Algorithms
Given a quaternion , the logarithm is computed by
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2020b
Apri esempio
Si dispone di una versione modificata di questo esempio. Desideri aprire questo esempio con le tue modifiche?
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)