# pam

Version:

Modulates a sequence of integers into a series of pulse amplitude modulation (PAM) symbols.

## Syntax

y = pam(x, m)
y = pam(x, m, phi)
y = pam(x, m, phi, type)
Legacy name: pammod

## x

Sequence of integers to modulate. x is an integer scalar, vector, or matrix in the range of [0, m-1].

## m

Uses m-ary PAM modulation. m should be an integer equal to or greater than 2.

Default: 0

## type

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

Name Description
'Bin'

Uses binary mapping to the modulated symbols.

'Gray'

Uses Gray-coded mapping to the modulated symbols.

Default: 'Bin'

## y

Modulated symbols. y is a complex, double-precision, floating-point scalar, vector, or matrix.

X = randint(1, 1000, 8)
Y = pam(X, 8, 0, 'Gray')

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices