Owning Class: basic
Requires: MathScript RT Module
c = log2(a)
Computes the base 2 logarithm of the input elements. The base 2 logarithm of zero is -inf.
| Name | Description |
|---|---|
| a | Specifies a numeric scalar, vector, or matrix. |
| Name | Description |
|---|---|
| c | Returns the base 2 logarithm of the elements in a. c returns complex numbers for negative or complex elements in a. c is a scalar, vector, or matrix of the same size as a. |
A = [0.1, 1; 10, 100]
C = log2(A)