exponentmax

Maximum exponent for `quantizer` object

Syntax

`exponentmax(q)`

Description

`exponentmax(q)` returns the maximum exponent for `quantizer` object `q`. When `q` is a fixed-point `quantizer` object, it returns `0`.

Examples

```q = quantizer('double'); emax = exponentmax(q) emax = 1023 ```

collapse all

Algorithms

For floating-point `quantizer` objects,

`${E}_{max}={2}^{e-1}-1$`

For fixed-point `quantizer` objects, ${E}_{max}=0$ by definition.