exponentbias

Exponent bias for `quantizer` object

Syntax

```b = exponentbias(q) ```

Description

`b = exponentbias(q)` returns the exponent bias of the `quantizer` object `q`. For fixed-point `quantizer` objects, `exponentbias(q)` returns 0.

Examples

```q = quantizer('double'); b = exponentbias(q)```
```b = 1023```

Algorithms

For floating-point `quantizer` objects,

`$b={2}^{e-1}-1$`

where `e` = `eps(q)`, and `exponentbias` is the same as the exponent maximum.

For fixed-point `quantizer` objects, ```b = 0``` by definition.

Version History

Introduced before R2006a