Main Content
logm
Matrix logarithm
Syntax
Description
Examples
Matrix Logarithm
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)]
Input Arguments
Output Arguments
Version History
Introduced in R2014b