Truth Table Generator

Generates a 2^N by N matrix of 1's and 0's
2K Downloads
Updated 25 Jan 2010

View License

It is straightforward:

T = truth_table(2)

T =
0 0
0 1
1 0
1 1

Cite As

Mustafa Torun (2024). Truth Table Generator (https://www.mathworks.com/matlabcentral/fileexchange/26477-truth-table-generator), MATLAB Central File Exchange. Retrieved .

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

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