| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Communications Blockset |
| Contents | Index |
| Learn more about Communications Blockset |
AM, in Digital Baseband sublibrary of Modulation
The Rectangular QAM Modulator Baseband block modulates using M-ary quadrature amplitude modulation with a constellation on a rectangular lattice. The output is a baseband representation of the modulated signal.
The signal constellation has M points, where M is the M-ary number parameter. M must have the form 2K for some positive integer K. The block scales the signal constellation based on how you set the Normalization method parameter. The following table lists the possible scaling conditions.
| Value of Normalization Method Parameter | Scaling Condition |
|---|---|
| Min. distance between symbols | The nearest pair of points in the constellation is separated by the value of the Minimum distance parameter |
| Average Power | The average power of the symbols in the constellation is the Average power parameter |
| Peak Power | The maximum power of the symbols in the constellation is the Peak power parameter |
The input and output for this block are discrete-time signals. The Input type parameter determines whether the block accepts integers between 0 and M-1, or binary representations of integers:
If Input type is set to Integer, the block accepts integers. The input can be either a scalar or a frame-based column vector, and the block can accept the data types int8, uint8, int16, uint16, int32, uint32, single, and double.
If Input type is set to Bit, the block accepts groups of K bits, called binary words. The input can be either a vector of length K or a frame-based column vector whose length is an integer multiple of K. For bit inputs, the block can accept int8, uint8, int16, uint16, int32, uint32, boolean, single, and double. The Constellation ordering parameter indicates how the block assigns binary words to points of the signal constellation. Such assignments apply independently to the in-phase and quadrature components of the input:
If Constellation ordering is set to Binary, the block uses a natural binary-coded constellation.
If Constellation ordering is set to Gray and K is even, the block uses a Gray-coded constellation.
If Constellation ordering is set to Gray and K is odd, the block codes the constellation so that pairs of nearest points differ in one or two bits. The constellation is cross-shaped, and the schematic below indicates which pairs of points differ in two bits. The schematic uses M = 128, but suggests the general case.

For details about the Gray coding, see the reference page for the M-PSK Modulator Baseband block and the paper listed in References. Because the in-phase and quadrature components are assigned independently, the Gray and binary orderings coincide when M = 4.
The Rectangular QAM Modulator Baseband block provides the capability to visualize a signal constellation from the block mask. This Constellation Visualization feature allows you to visualize a signal constellation for specific block parameters. For more information, see the Constellation Visualization section of the Communications Blockset User's Guide.

The number of points in the signal constellation. It must have the form 2K for some positive integer K.
Indicates whether the input consists of integers or groups of bits.
Determines how the block maps each symbol to a group of output bits or integer.
Selecting User-defined displays the field Constellation mapping, which allows for user-specified mapping.
This parameter is a row or column vector of size M and must have unique integer values in the range [0, M-1]. The values must be of data type double.
The first element of this vector corresponds to the top-leftmost point of the constellation, with subsequent elements running down column-wise, from left to right. The last element corresponds to the bottom-rightmost point.
This field appears when User-defined is selected in the drop-down list Constellation ordering.
Determines how the block scales the signal constellation. Choices are Min. distance between symbols, Average Power, and Peak Power.
The distance between two nearest constellation points. This field appears only when Normalization method is set to Min. distance between symbols.
The average power of the symbols in the constellation, referenced to 1 ohm. This field appears only when Normalization method is set to Average Power.
The maximum power of the symbols in the constellation, referenced to 1 ohm. This field appears only when Normalization method is set to Peak Power.
The rotation of the signal constellation, in radians.
The output data type can be set to double, single, Fixed-point, User-defined, or Inherit via back propagation.
Setting this parameter to Fixed-point or User-defined enables fields in which you can further specify details. Setting this parameter to Inherit via back propagation, sets the output data type and scaling to match the following block.
Specify the word length, in bits, of the fixed-point output data type. This parameter is only visible when you select Fixed-point for the Output data type parameter.
Specify any signed built-in or signed fixed-point data type. You can specify fixed-point data types using the sfix, sint, sfrac, and fixdt functions from Simulink Fixed Point software. This parameter is only visible when you select User-defined for the Output data type parameter.
Specify the scaling of the fixed-point output by either of the following methods:
Choose Best precision to have the output scaling automatically set such that the output signal has the best possible precision.
Choose User-defined to specify the output scaling in the Output fraction length parameter.
This parameter is only visible when you select Fixed-point for the Output data type parameter or when you select User-defined and the specified output data type is a fixed-point data type.
For fixed-point output data types, specify the number of fractional bits, or bits to the right of the binary point. This parameter is only visible when you select Fixed-point or User-defined for the Output data type parameter and User-defined for the Set output fraction length to parameter.
Rectangular QAM Demodulator Baseband
General QAM Modulator Baseband
[1] Smith, Joel G., "Odd-Bit Quadrature Amplitude-Shift Keying," IEEE Transactions on Communications, Vol. COM-23, March 1975, 385–389.
![]() | Rectangular QAM Demodulator Baseband | Rectangular QAM TCM Decoder | ![]() |

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 |