TRUTH TABLE

Creates a Logical Truth Table Matrix for 'N' Input Variables.
714 Downloads
Updated 8 Jun 2010

View License

Function 'TruthTable.m' is specifically used to generate a logical combinational truth table matrix for 'N' input variables.

For Example:
To find the logical truth table matrix for N=3 using this function:
Type in Command Window:
TruthTable(3)
and press enter.

Limitation: Takes considerable time to execute for higher values of 'N'.

Cite As

Abhishek Chakraborty (2025). TRUTH TABLE (https://www.mathworks.com/matlabcentral/fileexchange/27835-truth-table), MATLAB Central File Exchange. Retrieved .

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

Inspired by: Truth Table Matrix Generator

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

I have reduced the number of steps in this new update. Also I have included comment lines, which were not available in the previous file.

1.0.0.0