codebookexe

Produce quantization index and quantized output value
1 Download
Updated 23 Dec 2022

View License

index = quantiz(sig,partition) returns the quantization levels of input signal sig by using the scalar quantization partition specified in input partition.
[index,quants] = quantiz(sig,partition,codebook) specifies codebook, which prescribes a value for each partition in the scalar quantization. codebook is a vector whose length must exceed the length of partition by one. The function also returns quants, which contains the scalar quantization of sig and depends on the quantization levels and prescribed values in the codebook.
[index,quants,distor] = quantiz(sig,partition,codebook) returns an estimate of the mean square distortion of the quantization data.
MATLAB Release Compatibility
Created with R2022b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0