Version:

Modulates a sequence of integers into a series of Quadrature Amplitude Modulated (QAM) symbols.

## Syntax

y = qam(x, m)
y = qam(x, m, phi)
y = qam(x, m, phi, type)
Legacy name: qammod

## x

Sequence of integers to modulate. x is a I32 array of any dimension in the range [0, m-1].

## m

M-ary QAM modulation. m should be a square of a power of 2.

## phi

Initial phase in radians. The default phi is 0.

## type

Method to map the integers to modulated symbols. type is a string that accepts the following values:

 'Bin' (default) Uses binary mapping to the modulated symbols. 'Gray' Uses Gray-coded mapping to the modulated symbols.

## y

Modulated symbols. y is a complex, double-precision or floating-point number of the same size as x.