Publisher review:enumBase2 constructs a character or numeric array that enumerates from 0 to (2^n - 1) in binary. a = enumBase2(n) constructs a cell array that enumerates from 0 to (2^n - 1) in binary.a = enumBase2(n,outputformat) constructs an array that enumerates from 0to (2^n - 1) in binary. The type of array output is given by outputformat. By default, outputformat=1, which outputs a cell array.If outputformat=2, then the output is a numeric array.Examples-------numBase2(4) returns the following cell array:0000000100100011010001010110011110001001101010111100110111101111numBase2(4,2) output the same as above, except as a numeric array.Useful for combinatorics. Requirements: ยท MATLAB Release: R2006a
enumBase2 is a Matlab script for Statistics and Probability scripts design by Shawn Mikula.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris