gray2bin
(Removed) Convert Gray-encoded positive integers to corresponding Gray-decoded integers
gray2bin
has been removed. Instead, use the appropriate
modulation object or function to remap constellation points. For more information, see
Version History.
Description
generates a Gray-decoded output vector or matrix y
= gray2bin(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.
[
generates a Gray-decoded output y
,map
] = gray2bin(x
,modulation
,M
)y
with its respective
Gray-encoded constellation map, map
.
You can use map output to label a Gray-encoded constellation. The map output gives the Gray-encoded labels for the corresponding modulation. See Binary to Gray Symbol Mapping example.
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'
symbol ordering
option, instead of gray2bin
.