Mu_Law_Quantize
This MATLAB exercise illustrates the impact of mu law companding (compressing and expanding) and quantization of a speech signal. The program quantizes a speech file using a mu law quantizer with a bit rate of 'nbits' per sample, where 'nbits' is typically in the range of 2-10. The program plots the quantized signal and the error signal, along with an estimate of the signal and error power spectrum, and a histogram of the error signal values. The program also plays out the error signals in order to get a feeling for how much noise is introduced into the quantized signal at different bit rates. The file '5.5 Mu Law Quantization.pdf' provides a User's Guide for this exercise.
Cite As
Lawrence Rabiner (2026). Mu_Law_Quantize (https://uk.mathworks.com/matlabcentral/fileexchange/52119-mu_law_quantize), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Transforms, Correlation, and Modeling > Transforms > Discrete Fourier and Cosine Transforms >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
works on both R2015a and windows 10
|
