Filter Design Toolbox    
wordlength

Return the word length for a quantizer

Syntax

Description

wordlength(q) returns the word length of quantizer q.

Examples

returns 16.

Even though the word length can be read in two stages,

it is handy to have it available for use in equations. For example, the algorithm for realmax(q) when q is a signed fixed-point quantizer (q.mode = 'fixed') is

which can be coded as

See Also
fractionlength  Return the exponent length of a quantizer.

exponentlength  Return the fraction length for a quantizer.


 unitquantizer zerophase