image thumbnail

Gray code for all base numbers

version (6.03 KB) by Abbas Manthiri S
Program simplified to get squence


Updated 04 Apr 2017

View License

The reflected binary code (RBC), also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in only one bit (binary digit). The reflected binary code was originally designed to prevent spurious output from electromechanical switches. Today, Gray codes are widely used to facilitate error correction in digital communications such as digital terrestrial television and some cable TV systems.

Cite As

Abbas Manthiri S (2022). Gray code for all base numbers (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Seqence Generator/

Seqence Generator/html/