powered by
The function gray2bin converts gray coded integer to a binary coded number.
gray2bin(gray)
A gray coded number.
Returns the binary coded integer equivalent of the input number.
The gray2bin function works as a compliment of the bin2gray function.
bin2gray, gray2bin2
bin2gray
gray2bin2
# NOT RUN { gray = c(1,1,1,0) gray2bin(gray) # returns 1011 gray = c(1,1,1,1) gray2bin(gray) # returns 1010 # }
Run the code above in your browser using DataLab