log2
Computes the base-2 logarithm of a matrix.
Syntax
R = log2(x)
[F,E] = log2(x)
Inputs
- x
- Any valid scalar | vector | matrix
Outputs
- R
- Resulting scalar | vector | matrix. A resulting matrix has the same dimensions as x.
- F,E
- X = F.*2.^E
Examples
R = log2(2)
R = 1
[F,E] = log2(140)
F = 0.546875
E = 8