freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于matlab的qpsk仿真設(shè)計(jì)報(bào)告(參考版)

2024-08-30 15:22本頁(yè)面
  

【正文】 % since 2N bits are transmitted 。 end ps1=numofsymbolerror/(N*counter)。 end。 end。 if (decis2~=dsource2(i)), numofbiterror=numofbiterror+1。 symbolerror=1。 % Increment the error counter, if the decision is not correct symbolerror=0。 decis2=1。 decis2=0。 decis2=1。 decis2=0。 % The decision on the ith symbol is made next c_max=max([c00,c01,c10,c11])。 c10=dot(r,s10)。 % The correlation metrics are puted below c00=dot(r,s00)。 else r=s11+n。 elseif ((dsource1(i)==1) amp。 elseif ((dsource1(i)==0) amp。 % 2 normal distributed with 0, variance 22 sgma if ((dsource1(i)==0) amp。 end。 dsource2(i)=1。 dsource2(i)=0。 dsource2(i)=1。 dsource2(i)=0。 while(numofbiterror100) for i=1:N, temp=rand。 numofbiterror=0。 s10=[0 1]。 s01=[0 1]。 % signal to noise ratio sgma=sqrt(E/snr)/2。 E=1。 % since there are totally N symbols pb=numofbiterror/(2*N*counter)。 end counter=counter+1。 if (symbolerror==1), numofsymbolerror=numofsymbolerror+1。 symbolerror=1。 end。 if (decis1~=dsource1(i)), numofbiterror=numofbiterror+1。 end。 else decis1=1。 elseif (c10==c_max), decis1=1。 elseif (c01==c_max), decis1=0。 if (c00==c_max), decis1=0。 c11=dot(r,s11)。 c01=dot(r,s01)。 end。 (dsource2(i)==0)), r=s10*ray+n。 (dsource2(i)==1)), r=ray*s01+n。 (dsource2(i)==0)), r=ray*s00+n。 n=sgma*randn(1,2)。 end。 dsource2(i)=1。 dsource2(i)=0。 dsource2(i)=1。 dsource2(i)=0。 % signal mapping % generation of the data source while(numofbiterror100) for i=1:N, temp=rand。 s11=[1 0]。 % noise variance 20 s00=[1 0]。 snr=10^(snr_in_dB/10)。 numofbiterror=0。 E=1。)。,39。,39。,39。 legend(39。BER39。)。 xlabel(39。+39。hold on。hold on。r*39。hold on。誤碼率曲線 39。r39。)。,39。 legend(39。)。 plot(Ray_ichsum(i),Ray_qchsum(i),39。hold on。QPSK 信號(hào)星座圖( Awgn+Ray) 39。r+39。)。,fs),title(39。 psd(h,Ray_s,39。 axis([0 500 5 5])。調(diào)制信號(hào) (Ray+Awgn)39。)。,39。 legend(39。)。 plot(Awgn_ichsum(i),Awgn_qchsum(i),39。hold on。QPSK 信號(hào)星座圖( Awgn) 39。r+39。 19 axis([0 2020 5 5])。高斯噪聲曲線 39。 subplot(2,2,3)。調(diào)制信號(hào)功率譜密度 (Awgn)39。fs39。 subplot(2,2,2)。)。 plot(s1),title(39。)。,fs),title(39。 psd(h,demodata1,39。 axis([0 20200 2 2])。解調(diào)輸出 39。 subplot(3,2,5)。調(diào)制信號(hào)功率譜密度 39。fs39。 subplot(3,2,4)。)。 plot(s),title(39。)。,fs),title(39。 psd(h,data1,39。 axis([0 20200 2 2])?;鶐盘?hào) 39。 % 輸出顯示部分 % 第一部分(理想) figure(1) subplot(3,2,1)。 end。 theo_err_ray_prb(i)=*(11/sqrt(1+1/SNR))。 for i=1:length(SNRindB2), SNR=exp(SNRindB2(i)*log(10)/10)。 end。 disp([ps1,pb1])。 smld_bit_awgn_err_prb(i)=pb1。 % 高斯信道 echo on。 echo off。 smld_symbol_ray_err_prb(i)=ps。 % 瑞利衰落信道 for i=1:length(SNRindB1), [pb,ps]=cm_sm32(SNRindB1(i))。和 cm_sm33()函數(shù) %%聲明: 函數(shù)聲明在另外倆個(gè) M 文件中 %%作用: cm_sm32()用于瑞利信道誤碼率的計(jì)算 %% cm_sm33()用于高斯信道誤碼率的計(jì)算 %% ecoh on/off 作用在于決定是否顯示指令內(nèi)容 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SNRindB1=0:1:6。 for q=1:nb Ray_demodata1((q1)/delta_T+1:q/delta_T)=Ray_demodata(q)。 Ray_demodata(2:ml:nb)=Ray_qdata4。 end end % 將判決之后的數(shù)據(jù)存放進(jìn)數(shù)組 Ray_demodata=zeros(1,nb)。 if Ray_qchsum(n)=0 Ray_qdata4(n)=1。 else Ray_idata4(n)=0。 for n=1:nb/2 Ray_ichsum(n)=sum(idata2((n1)/delta_T+1:n/delta_T))*delta_T。 % 為了顯示星座圖 ,將信號(hào)進(jìn)行處理 Ray_idata4=zeros(1,nb/2)。 end % 累計(jì)誤碼數(shù) % abs(demodatadata)求接收端和發(fā)射端 % 數(shù)據(jù)差的絕對(duì)值,累計(jì)之后就是誤碼個(gè)數(shù) Awgn_num_BER=sum(abs(demodatadata)) % 解調(diào)部分(瑞利 +高斯) Ray_idata2=Ray_s.*a。 %為了顯示,將它變成波形信號(hào)(即傳輸一個(gè) 1代表單位寬度的高電平) demodata1=zeros(1,nb/delta_T)。 demodata(1:ml:(nb1))=idata3。 else qdata4(n)=0。 end Awgn_qchsum(n)=sum(qdata2((n1)/delta_T+1:n/delta_T))*delta_T。 if Awgn_ichsum(n)=0 idata4(n)=1。 qdata4=zeros(1,nb/2)。
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1