DocumentationHelp Center
Natural logarithm of quaternion array
B = log(A)
example
B = log(A) computes the natural logarithm of the elements of the quaternion array A.
B
A
collapse all
Create a 3-by-1 quaternion array A.
A = quaternion(randn(3,4))
A=3×1 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=3×1 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 array, specified as a scalar, vector, matrix, or multidimensional array.
Data Types: quaternion
quaternion
Quaternion natural logarithm values, returned as a scalar, vector, matrix, or multidimensional array.
Given a quaternion A=a+v¯=a+bi+cj+dk, the logarithm is computed by
log(A)=log‖A‖+v¯‖v¯‖arccosa‖A‖
exp
power, .^
이 예제의 수정된 버전이 있습니다. 사용자가 편집한 내용을 반영하여 이 예제를 여시겠습니까?
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office