The base two logarithm of the argument. |
||
Syntax |
L = Log2(M) |
|
Argument |
Name |
Description |
M |
A scalar, vector, or a matrix. |
|
Output |
Name |
Description |
L |
The base ten logarithm of each entry. |
|
Example |
Find the base two logarithm of elements in a matrix: |
|
Syntax |
||
L = Log2([1,2;3,4]) |
||
Result |
||
L = 0 1 1.585 2 |
||
Comments |
The argument values must be non-zero. For negative arguments, the result will be the primary complex value. |
|
See Also: |