mu2lin

Purpose

µ-law to linear conversion.

Synopsis

y = mu2lin(mu)

Description

y = mu2lin(mu) converts µ-law encoded 8-bit audio signals, stored as flints (floating-point integers) in the range 0 <= mu <= 255, to linear audio signal amplitudes in the range -s <= y <= s. The value of s is 32124/32768, or approximately 0.9803.

The µ-law encoded input is often obtained using

fread(...,'uchar')
to read byte-encoded audio files.

See Also

auread, lin2mu

(c) Copyright 1994 by The MathWorks, Inc.