?? kasami_seq.m
字號(hào):
function kasami=kasami_seq(fbconnection) %%%kasami序列
% fbconnection=[1 0 0 0 0 1]
mseq=m_sequence(fbconnection);
N=2^length(fbconnection)-1;
sample_period=2^(length(fbconnection)/2)+1;
sample_seq=[];
for sample_length=1:N/sample_period
temp=mseq(sample_length*sample_period);
sample_seq=[sample_seq temp];
end
mseq1=[];
for sample_cyc=1:sample_period
mseq1=[mseq1 sample_seq];
end
for shift_amount=0:N/sample_period-1
shift_mseq2=[mseq1(shift_amount+1:N) mseq1(1:shift_amount)];
kasami(shift_amount+1,:)=mod(mseq+shift_mseq2,2);
end
kasami(shift_amount+2,:)=mseq;
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -