資源簡介
本壓縮文件包含了幾類偽隨機(jī)序列的matlab源程序,注釋清晰明了。
代碼片段和文件信息
function?gold_seq=gold_seq_gen(g1g2)
%
%?Now?we?use?function?‘m_seq_gen‘?to?product?function?‘gold_seq_gen‘
%?What?we?need?is?two?m_sequences?generate?multinomial?‘g1‘?and?‘g2‘
%?eg.?f1(x)=x^6+x+1?and?f2(x)=x^6+x^5+x^2+x+1
%?then?g1=[1000011]?and?g2=[1100111].
%?For?more?detail?about?‘g1‘?and?‘g2‘?please?reference?function?‘m_seq_gen‘
%?Independently?powered?by?Tobby?2011-01-17
%?And?gold_seq?is?the?output?with?double-polarity
%
if?length(g1)~=length(g2)
????error(‘g1?and?g2?must?be?the?same?length.‘);
end
m_seq1=m_seq_gen(g1);
m_seq2=m_seq_gen(g2);
%?m1xm2=xcorr(m_seq1m_seq2);
%?peak_corr=max(abs(m1xm2));
%?if?mod(length(g1)-12)
%?????if(peak_corr>2^(((length(g1)-1)+1)/2)+1)
%?????????error(‘The?peak?correlation?value?between?m_seq1?and?m_seq2?gene
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????584??2011-01-13?15:29??PN碼\barker_code.mat
?????文件???????1407??2011-01-18?11:46??PN碼\gold_seq_gen.m
?????文件???????1010??2011-01-17?15:46??PN碼\m_sequence.m
?????文件???????1001??2011-01-26?11:18??PN碼\M_sequences.m
?????文件????????788??2011-01-18?16:55??PN碼\m_seq_gen.m
?????文件????????345??2011-01-20?09:54??PN碼\prm_num.m
?????文件???????1248??2011-01-13?15:12??PN碼\sqrt_redundance_code.m
?????目錄??????????0??2011-03-31?08:56??PN碼
-----------?---------??----------?-----??----
?????????????????6383????????????????????8
評論
共有 條評論