亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tx2-rx1.m

?? 基于兩發兩收的空時碼編碼程序
?? M
字號:
close all;
clear all;
rand('state',sum(100*clock));%Initialize RAND
randn('state',sum(100*clock));%Initialize RANDN
 
QPSK_C=[1+j,-1+j,-1-j,1-j]; %Signal set
QPSK_B=[0 0; 0 1;1 1;1 0]; %Binary mapping
 
SizeOfSignalSet=size(QPSK_B,1);%The size of the signal set
BitsPerSymbol=size(QPSK_B,2); %number of bits carried by one symbol
Es=sum(QPSK_C.*conj(QPSK_C))/length(QPSK_C); %Average symbol energy
 
Eb=Es/BitsPerSymbol; %bit energy
 
% TX2, RX1, directly diversity
recIndex=1;
for EbN0=0:2:44
    N0=Eb*10^(-EbN0/10); %get the noise power
    testCount=0;
    errCount=0;
    while(1)
        h0=(randn(1)+j*randn(1))/sqrt(2);%Generate the channel (Complex gaussian, Rayleigh apmlitude)
 
        h1=(randn(1)+j*randn(1))/sqrt(2);%Generate the channel (Complex gaussian, Rayleigh apmlitude)
        
        %Randomly generate a source symbol
        SrcIndex=floor(rand(1)*SizeOfSignalSet)+1;
        x=QPSK_C(SrcIndex); %get the signal symbol
        a=x/sqrt(2);
        b=x/sqrt(2);
        
        %Generate the noise
        n=(randn(1)+j*randn(1))/sqrt(2);
        n=n*sqrt(N0); %control the noise power, N0
 
        %The channel with noise
        r=h0*a+h1*b+n;
        
 
        %Detect the signal
        h=h0+h1;
        y=sqrt(2)*r/h;
 
        %Decision
        Error=(y-QPSK_C);
        Dist=Error.*conj(Error);
        [minVlaue DecIndex]=min(Dist);
 
        if(DecIndex ~= SrcIndex)
            errBinary=mod(QPSK_B(SrcIndex,:)+QPSK_B(DecIndex,:),2);
            errCount=errCount+sum(errBinary);
        end
        testCount=testCount+1;
        testLength=testCount*BitsPerSymbol;%Get the binary length
 
        %stop control
        if(testLength<100000) %test length lower bound 
            continue;
        end
        BER=errCount/testLength;
        if(BER<1e-10)
            continue;
        end
 
        testLevel=200.0/BER; %confidence level
        if(testLength>testLevel)
            break;
        end
    end
    BER_rec1(recIndex)=BER;%record the test result
    EbN0_rec1(recIndex)=EbN0;
    recIndex=recIndex+1;
    
    %Display the results
    BER_rec1
    EbN0_rec1
end
 
semilogy(EbN0_rec1,BER_rec1,'+-');
hold on
 
 
%Alamouti
% A Simple Transmit Diversity Technique for Wireless Communications, IEEE 
%IEEE JOURNAL ON SELECT AREAS IN COMMUNICATIONS, VOL. 16, NO. 8, OCTOBER 1998
 
% TX2, RX1, directly diversity
 
%Totally transmit 4 channel symbols for 2 source symbols
Eb=(4.0*Es)/(2*BitsPerSymbol);
recIndex=1;
for EbN0=0:2:26
    N0=Eb*10^(-EbN0/10); %get the noise power
    testCount=0;
    errCount=0;
    while(1)
        h0=(randn(1)+j*randn(1))/sqrt(2);%Generate the channel (Complex gaussian, Rayleigh apmlitude)
 
        h1=(randn(1)+j*randn(1))/sqrt(2);%Generate the channel (Complex gaussian, Rayleigh apmlitude)
        
        %Randomly generate two source symbols, S0 and S1
        SrcIndex0=floor(rand(1)*SizeOfSignalSet)+1;
        S0=QPSK_C(SrcIndex0); %get the signal symbol
        SrcIndex1=floor(rand(1)*SizeOfSignalSet)+1;
        S1=QPSK_C(SrcIndex1); %get the signal symbol
        
        
        %Generate the noise
        n0=(randn(1)+j*randn(1))/sqrt(2);
        n0=n0*sqrt(N0); %control the noise power, N0
        
        n1=(randn(1)+j*randn(1))/sqrt(2);
        n1=n1*sqrt(N0); %control the noise power, N0
 
        %The channel with noise
        r0=h0*S0+h1*S1+n0;
        r1=-h0*conj(S1)+h1*conj(S0)+n1;
        
 
        %Detect the signal
        Amp=real(h0*conj(h0)+h1*conj(h1));
        S0_wave=conj(h0)*r0+h1*conj(r1);
        S1_wave=conj(h1)*r0-h0*conj(r1);
        S0_wave=S0_wave/Amp;
        S1_wave=S1_wave/Amp;
        
        %Decision
        Error0=(S0_wave-QPSK_C);
        Dist0=Error0.*conj(Error0);
        [minVlaue0 DecIndex0]=min(Dist0);
        
        Error1=(S1_wave-QPSK_C);
        Dist1=Error1.*conj(Error1);
        [minVlaue1 DecIndex1]=min(Dist1);
 
        if(DecIndex0 ~= SrcIndex0)
            errBinary=mod(QPSK_B(SrcIndex0,:)+QPSK_B(DecIndex0,:),2);
            errCount=errCount+sum(errBinary);
        end
        
        if(DecIndex1 ~= SrcIndex1)
            errBinary=mod(QPSK_B(SrcIndex1,:)+QPSK_B(DecIndex1,:),2);
            errCount=errCount+sum(errBinary);
        end
        
        testCount=testCount+1;
        testLength=testCount*BitsPerSymbol*2;%Get the binary length
 
        %stop control
        if(testLength<100000) %test length lower bound 
            continue;
        end
        BER=errCount/testLength;
        if(BER<1e-10)
            continue;
        end
 
        testLevel=200.0/BER; %confidence level
        if(testLength>testLevel)
            break;
        end
    end
    BER_rec2(recIndex)=BER;%record the test result
    EbN0_rec2(recIndex)=EbN0;
    recIndex=recIndex+1;
    
    %Display the results
    BER_rec2
    EbN0_rec2
end
 
semilogy(EbN0_rec2,BER_rec2,'x-');
 
 
%Alamouti Solution 2
% A Simple Transmit Diversity Technique for Wireless Communications, IEEE 
%IEEE JOURNAL ON SELECT AREAS IN COMMUNICATIONS, VOL. 16, NO. 8, OCTOBER 1998
%Set S1=0 when solve S0
%And set S0=0 when slove S1
 
Eb=(4.0*Es)/(2*BitsPerSymbol);
recIndex=1;
for EbN0=0:2:26
    N0=Eb*10^(-EbN0/10); %get the noise power
    testCount=0;
    errCount=0;
    while(1)
        h0=(randn(1)+j*randn(1))/sqrt(2);%Generate the channel (Complex gaussian, Rayleigh apmlitude)
 
        h1=(randn(1)+j*randn(1))/sqrt(2);%Generate the channel (Complex gaussian, Rayleigh apmlitude)
        
        %Randomly generate two source symbols, S0 and S1
        SrcIndex0=floor(rand(1)*SizeOfSignalSet)+1;
        S0=QPSK_C(SrcIndex0); %get the signal symbol
        SrcIndex1=floor(rand(1)*SizeOfSignalSet)+1;
        S1=QPSK_C(SrcIndex1); %get the signal symbol
        
        
        %Generate the noise
        n0=(randn(1)+j*randn(1))/sqrt(2);
        n0=n0*sqrt(N0); %control the noise power, N0
        
        n1=(randn(1)+j*randn(1))/sqrt(2);
        n1=n1*sqrt(N0); %control the noise power, N0
 
        %The channel with noise
        r0=h0*S0+h1*S1+n0;
        r1=-h0*conj(S1)+h1*conj(S0)+n1;
        
 
        %Detect signals and decision
        tempA=r0-h0*QPSK_C;
        tempB=r1-h1*conj(QPSK_C);
        Dist0=tempA.*conj(tempA)+tempB.*conj(tempB);
        [minVlaue0 DecIndex0]=min(Dist0);
        
        tempA=r0-h1*QPSK_C;
        tempB=r1+h0*conj(QPSK_C);
        Dist1=tempA.*conj(tempA)+tempB.*conj(tempB);
        [minVlaue1 DecIndex1]=min(Dist1);
        
        if(DecIndex0 ~= SrcIndex0)
            errBinary=mod(QPSK_B(SrcIndex0,:)+QPSK_B(DecIndex0,:),2);
            errCount=errCount+sum(errBinary);
        end
        
        if(DecIndex1 ~= SrcIndex1)
            errBinary=mod(QPSK_B(SrcIndex1,:)+QPSK_B(DecIndex1,:),2);
            errCount=errCount+sum(errBinary);
        end
        
        testCount=testCount+1;
        testLength=testCount*BitsPerSymbol*2;%Get the binary length
 
        %stop control
        if(testLength<100000) %test length lower bound 
            continue;
        end
        BER=errCount/testLength;
        if(BER<1e-10)
            continue;
        end
 
        testLevel=200.0/BER; %confidence level
        if(testLength>testLevel)
            break;
        end
    end
    BER_rec3(recIndex)=BER;%record the test result
    EbN0_rec3(recIndex)=EbN0;
    recIndex=recIndex+1;
    
    %Display the results
    BER_rec3
    EbN0_rec3
end
 
semilogy(EbN0_rec3,BER_rec3,'r-');
xlabel('Eb/N0 in dB');
ylabel('Bit error rate');
 
legend('Tx 2, Rx 1, direct transmit diversity', 'Alamouti transmit diversity','Alamouti transmit diversity, solution 2');
grid
 
save myResults
 


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
樱花影视一区二区| 欧美一区二区三区爱爱| 国产精品成人网| 成人激情黄色小说| 亚洲老司机在线| 51精品国自产在线| 国产精品自拍三区| 成人欧美一区二区三区| 在线观看av一区二区| 蜜臀av性久久久久蜜臀aⅴ| 精品国产91乱码一区二区三区| 风间由美性色一区二区三区| 久久久久久97三级| 99精品国产99久久久久久白柏| 亚洲欧美日韩在线| 欧美日本视频在线| 国产成人精品亚洲日本在线桃色 | 久久精品国产成人一区二区三区 | 日本精品裸体写真集在线观看| 中文字幕在线不卡一区二区三区| 成人涩涩免费视频| 国产欧美一区二区精品性色| 97国产精品videossex| 亚洲成av人片在线观看无码| 欧美大片在线观看| proumb性欧美在线观看| 午夜伊人狠狠久久| 中文在线一区二区| 欧美日韩五月天| 国产一区91精品张津瑜| ...中文天堂在线一区| 91麻豆精品国产无毒不卡在线观看| 国产麻豆精品久久一二三| 一区二区国产盗摄色噜噜| 亚洲精品在线三区| 日本精品裸体写真集在线观看| 亚洲一区二区黄色| 国产精品黄色在线观看| 日本一区二区在线不卡| 欧美酷刑日本凌虐凌虐| 成人av影院在线| 久久99国内精品| 视频一区在线播放| 亚洲一区二区三区四区五区黄| 久久综合九色综合97_久久久| 欧美日韩另类一区| 日本二三区不卡| 91视频国产观看| 成+人+亚洲+综合天堂| 国产一区 二区 三区一级| 蜜桃av一区二区三区| 一区二区三区四区高清精品免费观看| 国产午夜精品一区二区| 欧美另类久久久品| 欧美日韩色一区| 亚洲国产一区视频| 国产调教视频一区| 欧美—级在线免费片| 欧美极品xxx| 日本一区二区三级电影在线观看| 欧美zozo另类异族| 91精品国产综合久久国产大片| 欧美日韩国产三级| 欧美高清视频www夜色资源网| 欧美日韩在线不卡| 欧美日韩视频在线观看一区二区三区 | 欧美国产精品一区| 中文字幕中文字幕在线一区| 国产精品三级av| 亚洲精品高清在线观看| 午夜精品一区二区三区免费视频| 亚洲高清视频在线| 日本在线不卡视频| 国产一区二区三区精品欧美日韩一区二区三区 | 激情偷乱视频一区二区三区| 国产成人免费视频网站高清观看视频| 国产成人av影院| 色婷婷激情久久| 7777精品伊人久久久大香线蕉超级流畅| 69精品人人人人| 日本一区二区视频在线观看| 国产无人区一区二区三区| 国产精品成人在线观看| 亚洲男人电影天堂| 尤物在线观看一区| 亚洲一区二区三区免费视频| 久久99最新地址| 色屁屁一区二区| 91在线看国产| 欧美日韩精品系列| 久久久久久久久久久99999| 国产欧美一二三区| 亚洲第四色夜色| 国产乱码精品一区二区三区av| 在线亚洲人成电影网站色www| 日韩亚洲欧美成人一区| 亚洲精品视频在线| 午夜天堂影视香蕉久久| 国产精品系列在线播放| 欧美图区在线视频| 国产精品沙发午睡系列990531| 亚洲成年人网站在线观看| 国产盗摄一区二区| 欧美日韩免费观看一区二区三区 | 樱花草国产18久久久久| 麻豆免费精品视频| 欧美日韩三级视频| 亚洲丝袜另类动漫二区| 国产寡妇亲子伦一区二区| 久久综合色鬼综合色| 九九视频精品免费| 亚洲精品在线观看视频| 狠狠色2019综合网| 国产欧美日韩不卡| 99re免费视频精品全部| 亚洲日本欧美天堂| 欧美日韩性生活| 美女性感视频久久| 久久久久久久免费视频了| 国产成人8x视频一区二区| 国产精品女同互慰在线看| voyeur盗摄精品| 尤物视频一区二区| 欧美一区二区三区不卡| 九九视频精品免费| 自拍视频在线观看一区二区| 欧美伊人久久大香线蕉综合69| 亚洲成人一区在线| 精品成人私密视频| 94-欧美-setu| 日本不卡高清视频| 日本一区二区免费在线观看视频| jvid福利写真一区二区三区| 午夜精品久久久久影视| 久久―日本道色综合久久| 97se亚洲国产综合自在线不卡| 久久久国际精品| 成人看片黄a免费看在线| 亚洲国产综合在线| 久久久美女艺术照精彩视频福利播放| 91看片淫黄大片一级| 蜜桃视频免费观看一区| 亚洲男人都懂的| 久久久久亚洲蜜桃| 欧美二区三区91| 91一区二区三区在线观看| 紧缚奴在线一区二区三区| 亚洲成人综合网站| 亚洲天堂精品在线观看| 久久久噜噜噜久噜久久综合| 欧美日韩第一区日日骚| 91蜜桃传媒精品久久久一区二区| 九九九精品视频| 五月天激情小说综合| 一区二区三区免费在线观看| 国产清纯美女被跳蛋高潮一区二区久久w | 2021中文字幕一区亚洲| 这里是久久伊人| 欧美日韩精品系列| 日本乱人伦aⅴ精品| 成人高清视频在线| 国产一区二区三区免费| 免费观看一级特黄欧美大片| 亚洲国产精品一区二区久久恐怖片| 中文字幕亚洲成人| 国产精品成人免费精品自在线观看| 欧美精品一区二区三区很污很色的 | 色综合久久综合网| 99精品桃花视频在线观看| 丰满少妇在线播放bd日韩电影| 国产一区二区三区久久久 | 亚洲五月六月丁香激情| 一区二区三区在线观看动漫 | 91精品在线免费| 日韩免费看网站| 久久伊人蜜桃av一区二区| 久久久久久久久久电影| 国产亚洲精品7777| 中文字幕日韩一区二区| 2020国产精品| 国产精品色在线观看| 亚洲六月丁香色婷婷综合久久| 一区二区三区精品在线| 日韩在线卡一卡二| 久久精品二区亚洲w码| 国产成人av网站| 在线欧美日韩国产| 欧美xxxx老人做受| ...xxx性欧美| 美女在线一区二区| www.亚洲激情.com| 欧美一区永久视频免费观看| 久久久久久电影| 亚洲一区二区三区中文字幕| 麻豆高清免费国产一区| 91在线免费播放| 欧美xxxx在线观看| 樱桃视频在线观看一区| 国产在线看一区| 欧美日韩你懂得|