in reply to Calculate log of matrix values

log 0 is undefined. Can you remove the 0 values from @matrix?