Make all Combinations of Bits

Version 1.0.0.0 (438 Bytes) by Tom Baker
Produce bit array of N bits with all combinations of 1s and 0s.
1.4K Downloads
Updated 30 Apr 2004

No License

MAKEBITS - Produce bit array of N bits with all combinations of 1s and 0s.

Example: makebits(3)' produces

0 0 0 0 1 1 1 1
0 0 1 1 0 0 1 1
0 1 0 1 0 1 0 1

but of course you can flip it to the transverse.

I used this for testing communications channels.

Cite As

Tom Baker (2024). Make all Combinations of Bits (https://www.mathworks.com/matlabcentral/fileexchange/4817-make-all-combinations-of-bits), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Error Detection and Correction in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0