Truth Table Generator
Version 1.0.0.0 (1.2 KB) by
Mustafa Torun
Generates a 2^N by N matrix of 1's and 0's
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 LinuxCategories
- MATLAB > Language Fundamentals > Data Types > Numeric Types >
- MATLAB > Language Fundamentals > Data Types > Tables >
- MATLAB > Language Fundamentals > Data Types > Numeric Types > Logical >
Find more on Numeric Types in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |