Combn
COMBN - all combinations of elements M = COMBN(V,N) returns all combinations of N elements of the elements in vector V. M has the size (length(V).^N)-by-N. [M,I] = COMBN(V,N) also returns the index matrix I so that M = V(I). V can be an array of numbers, cells or strings. Example: M = COMBN([0...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): COMBN Download |
This function will compute an example of an interleaved pseudo-random de Bruijn sequence, a member of the larger class of M-sequences. The sequence will contain an equal number of each character and subsequence of characters. The sequence is, by nature, circular, so the final members of pairs (or...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): de Bruijn sequence generator Download |
VChooseKRO(V, K) creates a matrix, which rows are all permutations created by choosing K elements of the vector V with order and with repetitions.INPUT: V: Array of class DOUBLE, SINGLE, (U)INT8/16/32/64, LOGICAL, CHAR. Prefer (U)INT8 or (U)INT16 for speed. K: Number of elements to choose.OUTPUT:...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (50): VChooseKRO Download |
NCHOOSE - all combinations of the elements of a setW = nchoose(S) returns all possible combinations of one or moreelements of the set S. In total there are 2^N-1 combinations, where Nis the number of elements in S. W is a cell array: each cell holds oneof these combination (as a row vector). S...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): NCHOOSE Download |