bi2gray

A function to convert a binary sequence to the Gray-encoded sequence.

You are now following this Submission

The function converts the binary input sequence into another binary sequence according to Gray code. See also gray2bi.

Example:

bi2gray( [ 1 1 1 ] )

will produce a following sequence:

1 0 0.

Cite As

Adrian Bohdanowicz (2026). bi2gray (https://www.mathworks.com/matlabcentral/fileexchange/1743-bi2gray), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0