Truth Table Generator

Generates a 2^N by N matrix of 1's and 0's

You are now following this Submission

It is straightforward:

T = truth_table(2)

T =
0 0
0 1
1 0
1 1

Cite As

Mustafa Torun (2026). Truth Table Generator (https://au.mathworks.com/matlabcentral/fileexchange/26477-truth-table-generator), 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.0