binaryTable

Creates a binary table based on "x" bits. Useful for quickly generating all cases of a binary set to generate a truth table.

You are now following this Submission

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://se.mathworks.com/matlabcentral/fileexchange/102960-binarytable), 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.0.0