-
1 Comment
Brendan Gray
on 11 Feb 2016
The test suite is poorly designed. A better test would be
assert(length(unique(sum(A.*repmat(2.^(0:(n-1)),2^n,1),2)))==2^n)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!