# lin2mu

## Purpose

Linear to µ-law conversion.

## Synopsis

    mu = lin2mu(y)

## Description

`mu = lin2mu(y)` converts linear audio signal amplitudes in the range -1 <= `y` <= 1 to µ-law encoded data in the range 0 <= `mu` <= 255.

The µ-law standard is widely used in communications, particularly in speech compression and digitization.

## See Also

    auwrite, mu2lin

(c) Copyright 1994 by The MathWorks, Inc.