binaryTable

Creates a binary table based on "x" bits. Useful for quickly generating all cases of a binary set to generate a truth table.
5 Downloads
Updated 4 Dec 2021

View License

Supports MATLAB versions with compatability with the following functions:
  • "unique"
  • "zeros"
  • "ones"
  • "repmat"
Input: integer "x" number of bits to generate case combinations for.
Output: matrix "y" with 2^x rows and x columns.

Cite As

Joshua Tyler (2026). binaryTable (https://www.mathworks.com/matlabcentral/fileexchange/102960-binarytable), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0