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

正文內(nèi)容

畢業(yè)設(shè)計(jì)基于matlab的qpsk系統(tǒng)仿真(參考版)

2025-06-22 20:33本頁面
  

【正文】 % since there are totally N symbolspb1=numofbiterror/(2*N*counter)。 endcounter=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+n。 (dsource2(i)==1)), r=s01+n。 (dsource2(i)==0)), r=s00+n。% detection and the probability of error calculationfor i=1:N, % the received signal at the detection, for the ith symbol,is: n=sgma*randn(1,2)。 end。 else % with probability 1/4, source output is 11 dsource1(i)=1。 elseif (temp), % with probability 1/4, source output is 10 dsource1(i)=1。 elseif (temp), % with probability 1/4, source output is 01 dsource1(i)=0。 % a uniform random variable between 0 and 1 if (temp), % with probability 1/4, source output is 00 dsource1(i)=0。counter=0。 % signal mapping% generation of the data sourcenumofsymbolerror=0。 s11=[1 0]。 % noise variances00=[1 0]。 % energy per symbolsnr=10^(snr_in_dB/10)。 % since 2N bits are transmitted %文件3function [pb1,ps1]=cm_sm32(snr_in_dB)% [pb,ps]=cm_sm32(snr_in_dB)% CM_SM3 finds the probability of bit error and symbol error for % the given value of snr_in_dB, signal to noise ratio in dB.N=100。endps=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*ray+n。 elseif ((dsource1(i)==1) amp。 elseif ((dsource1(i)==0) amp。 % 2 normal distributed with 0, variance sgma if ((dsource1(i)==0) amp。% detection and the probability of error calculationfor i=1:N, ray=raylrnd()。 end。 else % with probability 1/4, source output is 11 dsource1(i)=1。 elseif (temp), % with probability 1/4, source output is 10 dsource1(i)=1。 elseif (temp), % with probability 1/4, source output is 01 dsource1(i)=0。 % a uniform random variable between 0 and 1 if (temp), % with probability 1/4, source output is 00 dsource1(i)=0。 s10=[0 1]。 s01=[0 1]。 % signal to noise ratiosgma=sqrt(E/snr)/2。counter=0。 % energy per symbolnumofsymbolerror=0。%文件2function [pb,ps]=cm_sm32(snr_in_dB)% [pb,ps]=cm_sm32(snr_in_dB)% CM_SM3 finds the probability of bit error and symbol error for %
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1