Natural logarithm of entries of symbolic matrix
Compute the natural logarithm of each entry of this symbolic matrix:
syms x M = x*hilb(2); log(M)
ans = [ log(x), log(x/2)] [ log(x/2), log(x/3)]
Differentiate this symbolic expression:
syms x diff(log(x^3), x)
ans = 3/x
Input, specified as a number, vector, matrix, or array, or a symbolic number, scalar variable, matrix variable (since R2021a), array, function, or expression.