# 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

Scalar
input:

`R = log2(2)`

`R = 1`

Scalar input with multiple
return:

`[F,E] = log2(140)`

```
F = 0.546875
E = 8
```