(To be removed) Convert positive integers into corresponding Gray-encoded integers
bin2gray
will be removed in a future release. Use the
appropriate modulation object or function to remap constellation points instead. For
more information, see Compatibility Considerations.
generates a Gray-encoded vector or matrix output y
= bin2gray(x
,modulation
,M
)y
with the same
dimensions as its input parameter x
. x
can be
a scalar, vector, matrix, or 3-D array. modulation
is the
modulation type and must be 'qam'
, 'pam'
,
'fsk'
, 'dpsk'
, or
'psk'
. M
is the modulation order and must be
an integer power of 2.
Note
If you are converting binary-coded data to Gray-coded data and modulating
the result immediately afterwards, you should use the appropriate modulation
object or function with the 'Gray'
option, instead of
bin2gray
.