资源简介
本压缩文件包含了几类伪随机序列的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
评论
共有 条评论