資源描述:
《gold序列實(shí)驗(yàn)報(bào)告》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、Gold序列實(shí)驗(yàn)報(bào)告一、實(shí)驗(yàn)過(guò)程及分析1m序列&Gold序列的產(chǎn)生(1)選取本原多項(xiàng)式,產(chǎn)生m序列。fbconnection_m=[1010011];mseq=m_sequence(fbconnection_m);(2)由本原多項(xiàng)式生成的m序列為m序列優(yōu)選對(duì),以此優(yōu)選對(duì)來(lái)產(chǎn)生Gold序列。fbconnection_op_1=[0010001];fbconnection_op_2=[1110001];goldseq=gold_seq(fbconnection_op_1,fbconnection_op_2);2m序列的相關(guān)特性圖1m序列自相關(guān)函數(shù)圖2m序列互相關(guān)函數(shù)3
2、Gold序列的相關(guān)特性圖3Gold序列自相關(guān)函數(shù)圖4Gold序列互相關(guān)函數(shù)圖2-5m序列&Gold序列最小,最大相關(guān)值4m序列&Gold序列相關(guān)特性比較圖6m序列&Gold序列自相關(guān)函數(shù)比較圖7m序列&Gold序列互相關(guān)函數(shù)比較gold序列在時(shí)延不為0是三值的,這一點(diǎn)不如m序列,在時(shí)延為0處具有與m序列相同的峰值特性。顯然,m序列的自相關(guān)特性比Gold序列的自相關(guān)特性要好。Gold序列具有更小的互相關(guān)峰值,顯然Gold序列的互相關(guān)特性比m序列的互相關(guān)特性性能要好。5m序列優(yōu)選對(duì)m序列優(yōu)選對(duì)也是gold序列族中的gold序列,所以其互相關(guān)函數(shù)與gold序列一致。圖8
3、m序列優(yōu)選對(duì)的互相關(guān)函數(shù)6任選6個(gè)Gold序列,觀察其自相關(guān)函數(shù)圖9任選6個(gè)Gold序列的自相關(guān)函數(shù)7任選6對(duì)Gold序列,觀察其互相關(guān)函數(shù)圖10任選6對(duì)Gold序列的互相關(guān)函數(shù)任意兩個(gè)Gold序列互相關(guān)函數(shù)幅度小于或等于17,符合Gold理論。源碼(1)PN_Correlation.m%=======================================%PN_Correlation.m%CorrelationanalysisofPNsequence%%Author:jzh(04011646seu)%Date:2014.12.29%==========
4、=============================%cleancloseall;clearall;clc;%optimumpairsfbconnection_op_1=[0010001];fbconnection_op_2=[1110001];%anymsequencefortestfbconnection_m=[1010011];%goldsequencemseq_op_1=m_sequence(fbconnection_op_1);mseq_op_2=m_sequence(fbconnection_op_2);goldseq=gold_seq(fbco
5、nnection_op_1,fbconnection_op_2);%msequencemseq=m_sequence(fbconnection_m);%mappingmseq_op_1((mseq_op_1==0))=-1;mseq_op_2((mseq_op_2==0))=-1;goldseq((goldseq==0))=-1;mseq((mseq==0))=-1;m_auto=ccorr(mseq);%anytwomsequencesexceptoptimumpairsm_cross=ccorr(mseq,mseq_op_1);gold_auto=ccorr(
6、goldseq(1,:));gold_cross=ccorr(goldseq(1,:),goldseq(2,:));m_op_cross=ccorr(mseq_op_1,mseq_op_2);m_auto_max=max(m_auto)m_auto_min=min(m_auto)gold_auto_max=max(gold_auto)m_cross_amplitude_max=max(abs(m_cross))gold_cross_amplitude_max=max(abs(gold_cross))N=length(mseq);%sequencelengthabs
7、cissa=-N+1:N-1;%abscissaaxisfigure(1);plot(abscissa,m_auto);xlabel('k');ylabel('R(k)');legend('autocorrelationfunctionofmsequence');title('autocorrelationfunctionofmsequence');figure(2);plot(abscissa,m_cross);xlabel('k');ylabel('R(k)');legend('cross-correlationfunctionofmsequence');ti
8、tle('