| Contents | Index |
Source Coding
The Mu-Law Compressor block implements a µ-law compressor for the input signal. The formula for the µ-law compressor is
![]()
where µ is the µ-law parameter of the compressor, V is the peak magnitude of x, log is the natural logarithm, and sgn is the signum function (sign in MATLAB).
The input can have any shape or frame status. This block processes each vector element independently.

The µ-law parameter of the compressor.
The peak value of the input signal. This is also the peak value of the output.
| Port | Supported Data Types |
|---|---|
| In |
|
| Out |
|
[1] Sklar, Bernard. Digital Communications: Fundamentals and Applications. Englewood Cliffs, N.J.: Prentice-Hall, 1988.

Learn how to apply early verification to your development process through these technical resources.
How much time do you spend on testing to ensure implementation meets system-level requirements?
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |