Truth Table Generation

Version 1.1.0.0 (1.31 KB) by Mahendra
This function simply computes the truth table for a given number of variables.
417 Downloads
Updated 18 Nov 2009

View License

A truth table offers an effective method to analyse problems and permute data to cover possible combinations. The algorithm is run by passing in the number of decision variables (logic variables).

Cite As

Mahendra (2024). Truth Table Generation (https://www.mathworks.com/matlabcentral/fileexchange/25854-truth-table-generation), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Logical in Help Center and MATLAB Answers

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

More comprehensive comments with an example in the file Pre-allocation of variable before for loop
Replaced the zeros and ones functions by false and true functions

1.0.0.0