This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Convert mu-law audio signal to linear


y = mu2lin(mu)


y = mu2lin(mu) converts mu-law encoded 8-bit audio signals, stored as “flints” in the range 0 ≤ mu ≤ 255, to linear signal amplitude in the range -s < Y < s where s = 32124/32768 ~= .9803. The input mu is often obtained using fread(...,'uchar') to read byte-encoded audio files. "Flints" are MATLAB® integers — floating-point numbers whose values are integers.

See Also


Introduced before R2006a