minTruthtable(tt, flags)
This is an implementation of the Quine-McCluskey algorithm, optimized for speed rather than readability.
It may guarantee optimality (controllable using flags). If you have a big problem and an implementation of the Espresso algorithm, use that one instead.
It takes a string containing '0', '1' and/or '-'.
It handles don't-cares.
It converts one single truth table at a time, and hence does NOT handles grid sharing.
Cite As
Petter (2026). minTruthtable(tt, flags) (https://se.mathworks.com/matlabcentral/fileexchange/37118-mintruthtable-tt-flags), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.4.0.0 | Speed improvements.
|
||
| 1.3.0.0 | Fixing a backward compatibility bug, Thank you KuyaRenzMo for pointing it out. |
||
| 1.2.0.0 | 1. It can now guarantee optimality (selectable using optional flags), using a built-in optimizer.
|
||
| 1.1.0.0 | Added an example in the help text (top comment), and added the "y = ..." string to the printed summary (when nargout=0). |
||
| 1.0.0.0 |
