matlab中combination,算法 – 在MATLAB中寻找互补向量的快捷方法
M = [1 0 0 1 0;1 1 0 0 1;0 1 1 0 1;0 1 0 0 1;0 0 1 0 0;0 0 1 1 0;1 1 1 1 1];% Find all the unique combinations of rows...S = (dec2bin(1:2^size(M,1)-1) == '1');% Find the matching combinations...matche...