回复 2 楼 top398
没有画完,我怎么觉得画不完的样子registers=[0 0 0 0 0 0 0 0 0 1]; connections = [1 0 1 0 1 0 0 0 0 1]; len = 3^9-1; seq = mseq(connections,registers,len);%调用mseq函数生成的一维二进制序列 array = zeros(26, 757); r = 1;c = 1; for k = 1:len array(r,c) = seq(k); r = r + 1; c = c + 1; %如先到达底边,则跳到最上方并且右移一位; if (mod(r,26) == 1) r = 1; end %如先到达右边,则跳到最左方并且下移一位; if(mod(c,757) == 1) c = 1; end end