資源簡介
1023長度的Gold碼的生成程序,包括了這一Gold碼族的所有碼子,一共有1025個碼子
代碼片段和文件信息
clcclear
n=10;
L=2^n-1;
m_phase=[1?zeros(1n-1)];
x=m_phase;
seq=[];
seq1=[];
seq2=[];
for?i=1:L
????c1(i)=x(n);
????temp=xor(xor(x(2)x(7))xor(x(8)x(10)));
????x(2:n)=x(1:n-1);
????x(1)=temp;
end;
m_phase=[1?zeros(1n-1)];
x=m_phase;
for?i=1:L
????c2(i)=x(n);
評論
共有 條評論