Creates a Gray encoded data y with the same size as input x
Input:
Output:
Example
y = bin2gray ([0:3], 'qam', 16) y = 0 1 3 2
Example with matrix
y = bin2gray ([0:3; 12:15], 'qam', 16) y = 0 1 3 2 8 9 11 10
See also: qammod.
Package: communications