Main Content

A-Law Expander

Implement A-law expander for source coding

Library

Source Coding

  • A-Law Expander block

Description

The A-Law Expander block recovers data that the A-Law Compressor block compressed. The formula for the A-law expander, shown below, is the inverse of the compressor function.

x={y(1+logA)Afor 0|y|V1+logAexp(|y|(1+logA)/V1)VAsgn(y)for V1+logA<|y|V

The input can have any shape or frame status. This block processes each vector element independently.

Parameters

A value

The A-law parameter of the compressor.

Peak signal magnitude

The peak value of the input signal. This is also the peak value of the output signal.

Match these parameters to the ones in the corresponding A-Law Compressor block.

Supported Data Type

PortSupported Data Types
In
  • double

Out
  • double

References

[1] Sklar, Bernard. Digital Communications: Fundamentals and Applications. Englewood Cliffs, N.J., Prentice-Hall, 1988.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced before R2006a