| Communications Toolbox | ![]() |
A codebook tells the quantizer which common value to assign to inputs that fall into each range of the partition. Represent a codebook as a vector whose length is the same as the number of partition intervals. For example, the vector
codebook = [-1, 0.5, 2, 3];
is one possible codebook for the partition [0,1,3].
| Representing Partitions | Scalar Quantization Example 1 | ![]() |
© 1994-2005 The MathWorks, Inc.