File Exchange

image thumbnail

Generate gray code disk

version 1.2.0.0 (1.72 KB) by Daniel Pihlquist
Use various matlab functions and loops to create a gray code disk.

0 Downloads

Updated 26 Mar 2013

View License

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.

Comments and Ratings (1)

Realized that you can flip the gray code matrix and get the lsb as the outmost circle. Updated dercription, waiting for it to get an OK from mathworks.

Updates

1.2.0.0

Updated the file with the fliplr() command.

1.1.0.0

Mking the output better with fliplr()

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor