The log10(m) function returns the log base 10 of each element.
Example
OML
>> m=[1 -2;-3 4]
1 -2
-3 4
>> log10(abs(m))
0 0.30103
0.477121 0.60206