| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Communications Blockset |
| Contents | Index |
| Learn more about Communications Blockset |
Source Coding
The A-Law Compressor block implements an A-law compressor for the input signal. The formula for the A-law compressor is

where A is the A-law parameter of the compressor, V is the peak signal magnitude for x, log is the natural logarithm, and sgn is the signum function (sign in MATLAB® software).
The most commonly used A value is 87.6.
The input can have any shape or frame status. This block processes each vector element independently.

The A-law parameter of the compressor.
The peak value of the input signal. This is also the peak value of the output signal.
[1] Sklar, Bernard. Digital Communications: Fundamentals and Applications. Englewood Cliffs, N.J., Prentice-Hall, 1988.
![]() | Blocks — Alphabetical List | A-Law Expander | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |