Matrix logarithm
R = logm(A)
example
R = logm(A) computes the matrix logarithm of the square matrix A.
R
A
Compute the matrix logarithm for the 2-by-2 matrix.
syms x A = [x 1; 0 -x]; logm(A)
ans = [ log(x), log(x)/(2*x) - log(-x)/(2*x)] [ 0, log(-x)]
collapse all
Input matrix, specified as a square symbolic matrix.
Resulting function, returned as a symbolic matrix.
eig | expm | funm | jordan | sqrtm
eig
expm
funm
jordan
sqrtm