《gold序列实验报告材料》由会员分享,可在线阅读,更多相关《gold序列实验报告材料(15页珍藏版)》请在金锄头文库上搜索。
1、Gold序列实验报告一.实验过程及分析l m序列&Gokl序列的产生(1)选取本原多项式=产生m序列。fbcon nectio 二1 0 10 011; mseq=m_seque nce(fbc on nectio n_m);(2)由本原多项式/(J)=1 + X3+A7 & /(X)= l+X + F+f+0生成的m序列为m 序列优选对,以此优选对来产生Gold序列。fbco nn ectio n_ op_l=0 0 10 0 0 1;fbcon nectio no p_2=l 110 0 0 1;goldseq=gold_seq(fbconnection_op_l,fbc on necti
2、on_op_2);2m序列的相关特性aurtocorrelation function of m sequence140autocorrelation function of m sequence12010040-1005050100150图仆序列自相关函数k图2 m序列互相关函数3 Gold序列的相关特性140autocorrelation function of gold sequence120100400500 k100150瞬 50-1O0-50图3 Gold序列自相关函数kl-H 4 Gold序列互相关函数L27JI auto JTL1E 二MBB-1Eold.au+amax =L2
3、7Jl_C 105 5_ill-P L it udJTlCLJL = r dlgcldcrossajTipli tudjjnax =17图2-5 m序列&Gold序列最小t最大相关值4 m序列&Gld序列相关特性比较1201008040200圭 60-20 -2000 100 200 kautocorreiation function of m sequence140120100806040200autocorrelation function of go!d sequence140-20-200 -100 0 100 200k图6m序列&Gold序列自相关函数比絞cross-correlat
4、ion function of m sequence cross-correlation function of gold sequencekk图7 m序列&Gold序列垃相关函数比絞沪Id序列在时延不为0是三值的卡这一点不如m序列,在时延为0处具有Gm序列相 同的雄值特性。显然,m序列的自相关特性比Gold序列的自相关特性要好.Gold序列具有更小的互相关蜂值,显然Gold序列的互相关特性比m序列的互相关特性 性能要好。5m序列优选对m序列优选对也是gold序列族中的go!d序列,所以苴互相关函数与gold序列一致。图8m序列优选对的互相关函数6任选6个Gold序列,观察其自相关函数a db
5、Miwr&jn an tuncosr ai a a ton gd sgenu佃K11 T.Iscq rvrfcKK1MajiwwrriiiiNi iinztiin oilqpid &j-wbauwccaean tuncrisr ol a randcrri g&d soqubnce140厂ia tw -m -40a -o -a -150140wjqru 氏 bw .SOU-100isaLWtoncjG luncanr tff a a*im gad soaicnce5CQ rtimter -124.150 -IOO-500MtO3:5OauiDciMTebiixi Winn of, nrgn 学I
6、d 知曲工亡HO 111 i-r图今任选6个Gold IT列的自相关函数7任选6对Gold序列,观察其互相关函数crosstcondafjcn LndMi M 2 randos gdd &mum:c; crass WMrtfdQn 4iriiu MAX-7图10任选6对Gold序列的互相关函数任意两个Gold序列互相关函数幅度小于或等干17,符冷Gold理论込源码(1) PN_Correlation.m% =% PN Correlation.m% Correlation mnalysis of PN sequence% Author: jzh (04011646 seu)% Date: 201
7、4.12.29% cleanclose all;clear all;de;% optimum pairsfbconnection_op_l=0 0 10 0 0 1;fbconnection_op_2=(l 110 0 0 1;% any m sequence for testfbconnection_m=l 010 011;% gold sequence mseq_op_l=m_sequence(fbconnection_op_l); mseq_op_2=m_sequence(fbconnection_op_2); goldseq=gold_seq(fbconnection_op_ljbco
8、n nECtion_op_2);% m sequencemseq=m_sequencefbconnection_m);% mappingmseq_op_l(mseq_op_t=0)=-l;m5eq_op_2(mseq_op_2=0)=-l;gold5eq(goldseq=0)=-l;title( autocorre!ation function of m sequenee);figure(2);plot(abscissa,m_cro5s);xlabel(k*); ylabel(R(k);legend( cross-correlation function of m sequence1); ti
9、tleCcross-correlation function of m sequenc&);figure ;p lot (abscissazgo I d_a u to);xlabelCk); ylabel(R(k);legend( autocorrelation function of gold sequence ); title( autocorrehtion function of gold sequence );figure (4);p lot(a bscis 53,501 d_cross);xla bel(k); ylabel(1R(k);legend( cross-correlatr
10、on function of gold sequence ); title( cross-correlation function of gold sequence );figure (S);subplotl,2,l);plot (a bsc is s a7 m_a uto);xlabelCk); ylabel(R(k);title( autocorrehtion function of m sequence);subplotl,2,2);p lot (abscissazgo I d_a u to);xlabelf k); ylabel(R(k);title( autocorrelation
11、function of gold sequence );figure(6);subplot 2,1);plot(abscissa,m_cros5);xlabel(k); ylabel(R(k);titleCcross-correhtion function of m sequence1);subplotl,2,2);plot(abscissa/gold_cross);xlabel(k); ylabel(R(k);title(cross-correSaUon functio门 of gold sequence );figure (7);plot(8tscis5Rm_op_cross);xlabe
12、l(k); ylabel( R(k);legend)cross-correlatFon function of m sequence optimum pairs1);title(cross-correlation function of m sequence optimum pairs);% test autocorrelation of any gold sequencefor test_time 二 1:6ii = ceil(rand()*(W+2);figure。;temp gold auto 二 ccorr(goldseq(ii/);plot(abscissa,temp gold au
13、to);xlabelf k1); ylabel(R(k);legend(stcat( seq number =um2str(ii);titlefautocorrelation function of a random gold sequenee);end% test cross correlation of any 2 gold sequeneefor test time = 1:6ii = ceil(rand()*(M+2);jj=ceil(rand()*(N+2);I Blwhile jj 二二 iijj=ceil(rand()*(N+2J);endfigurej);temp_gold_cross 二 ccorr(goldseq(ii#:),goldseq(jj,:);plot(absc