MATLAB: How to use “ln” function on each elemnets of the matrix

matlab function

hi
I would like to use ln (natural logarithm) function on each of the matrix element, how can I do that?
with out using loop

Best Answer

Here yourmatrix - double array.
log(yourmatrix)