Gray Code Manipulation

Generate Gray Codes and convert them to integers.

You are now following this Submission

Gray Codes are used for Goniometers,
a Hamiltonian Circuit on a Hypercube,
and for searches and optimizations
of functions of a few variables each
of which takes a few discrete values.
For details see file GrayCode.txt
that is included with this submission.

Cite As

William Kahan (2026). Gray Code Manipulation (https://ch.mathworks.com/matlabcentral/fileexchange/15570-gray-code-manipulation), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Fourier Analysis and Filtering in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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