n=7;
k=4;
p=cyclpoly(n,k,‘all’);
[H,G]=cyclgen(n,p(1,:));
a=G(1,:)
b=G(2,:)
c=G(3,:)
d=G(4,:)
a+b
a+c
a+d
b+c
b+d
c+d
a+b+c
b+c+d
a+c+d
a+b+d
a+b+c+d
运行如下:
1 0 1 1 0 0 0
1 1 1 0 1 0 0
1 1 0 0 0 1 0
0 1 1 0 0 0 1
2 1 2 1 1 0 0
2 1 1 1 0 1 0
1 1 2 1 0 0 1
2 2 1 0 1 1 0
1 2 2 0 1 0 1
1 2 1 0 0 1 1
3 2 2 1 1 1 0
2 3 2 0 1 1 1
2 2