log2(m)

The log2(m) function returns the log base 2 of each element.

Example

OML

>> m=[1 -2;-3 4]

1 -2

-3 4

>> log2(abs(m))

0 1

1.58496 2