Matrix logarithm
(Quaternion overloading of standard MATLAB® function)
X = logm(Y)
logm(X) computes the matrix logarithm of a quaternion matrix. The algorithm used is based on calling the MATLAB® logm function on an adjoint matrix, and is therefore not accurate for larger matrices. It may also fail for some quaternion matrices. The accuracy may be checked using the expm function.