Rank: 4052 based on 6 downloads (last 30 days) and 1 file submitted
photo

Torsten Geiss

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Torsten
Updated   File Tags Downloads
(last 30 days)
Comments Rating
27 Nov 2006 Truth Table Matrix Generator Calculates the binary truth table of n possibilities. Author: Torsten Geiss truth, table, truthtable, possibilities, binary, matrix 6 2
  • 1.0
1.0 | 2 ratings
Comments and Ratings on Torsten's Files View all
Updated File Comment by Comments Rating
27 Nov 2006 Truth Table Matrix Generator Calculates the binary truth table of n possibilities. Author: Torsten Geiss D'Errico, John

Why use a slow, un-preallocated, unvectorized code, when there is a one-liner available?

dec2bin(0:(nb_possibles-1))=='0'

27 Nov 2006 Truth Table Matrix Generator Calculates the binary truth table of n possibilities. Author: Torsten Geiss x@y.z, Jos

The lack of pre-allocation make this pretty slow. Moreover it errors on certain input (e.g., 5). And what is the use of this function if nb_possibles is not a power of 2?

Top Tags Applied by Torsten
binary, boolean, matrix, possibilities, table
Files Tagged by Torsten
Updated   File Tags Downloads
(last 30 days)
Comments Rating
27 Nov 2006 Truth Table Matrix Generator Calculates the binary truth table of n possibilities. Author: Torsten Geiss truth, table, truthtable, possibilities, binary, matrix 6 2
  • 1.0
1.0 | 2 ratings

Contact us at files@mathworks.com