Generate gray code disk

Use various matlab functions and loops to create a gray code disk.

You are now following this Submission

With three input parameters, radial resolution, circumferential resulution and the number of bits, this program generates an image of a gray code disk. This was thrown together pretty quickly, so I haven't had time to perfect the code further, so the number of bits is pretty much limited to 7. If you go higher, the resolution will be poor for the first bits.

Cite As

Daniel Pihlquist (2026). Generate gray code disk (https://in.mathworks.com/matlabcentral/fileexchange/40928-generate-gray-code-disk), 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.2.0.0

Updated the file with the fliplr() command.

1.1.0.0

Mking the output better with fliplr()

1.0.0.0