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

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

?? main.asv

?? ofdm系統中的em信道估計matlab仿真
?? ASV
字號:
%噪聲加在時域上,四種比較:理想信道、導頻、插值,EM
clc;
clear;
echo off;
T = 0.01;             % set the simulation time
Td =1e-6 ;      % set the bit signal rate , etc 10M hz
Ts = Td ;          % set the sample rate
SNRdB=10:20:70;     % the loop of the SNRindB 
Td2Ts = Td/Ts;
dopler = 50;       % set the dopler shift
baseType = 2; % set the baseband mapping Type , 1: BPSK ; 2 : QPSK ; 3 : 16QAM
subcaNUM = 32 ;       % the number of the OFDM subcarrier
fftdm    = subcaNUM ;       % the number of the FFT points
Tx       = 2  ;    % the number of the transfer attena
Rx       = 2 ;     % the number of the receive attena
cp_l     = 1/4;     % the relative length of the cp 
simulNUM = T/Ts ;  % calculate the simulation points
Dist=60;%導頻的間距
Dist_em=Dist/Dist*1;
sig=0.5:0.5:2;
msen=1:158;
Eav = 1;           % QPSK符號的平均能量 = 1+1


bitSource = bitSource_Gen(simulNUM);%產生一系列的01序列


%bitSource = ones(size(bitSource));
dSource = baseMapping(bitSource,baseType); %按照不同的方式進行調制

% ==================the S2P function
P_dSource = P2S( dSource,subcaNUM);

% ==================the STBC encode should be insert here
P_dSource_tr = P_dSource;   % ====the 1TX1Rx;
%[P_dSource_tr1,P_dSource_tr2] = STBC_2Tx1Rx(P_dSource);
%[P_dSource_tr1,P_dSource_tr2]=VblastTrans_2Tx2Rxintp
% ==================the end of STBC encode

% ==================add training symbol here
%[P_dSource_pilot,pilotNUM] = addpilot(P_dSource_tr,Dist);
[P_dSource_pilot,pilotNUM] = addpilot_em(P_dSource_tr,Dist);
size_P_dSource_pilot=size(P_dSource_pilot);%其實是要算P_dSource_pilot的大小
% ==================The end of the adding pilot

ofdm_dSource = ifft(P_dSource_pilot,fftdm);     % ifft comuputation



Td_ofdm = Ts* Td2Ts * subcaNUM;
cp_length = round(fftdm * cp_l);%cp_l保護間隔是加在頻域上的
tempo_Signal_cp = [ofdm_dSource( fftdm - cp_length+1 : fftdm ,:);ofdm_dSource];  % add cp



tmp = size(tempo_Signal_cp);
ofdm_tempo = reshape(tempo_Signal_cp,1,tmp(1)*tmp(2)) + eps;%1e-5;    % 1e-5 is to avoid NaN%重新變成串行的哦
clear tmp;

 % ==============generate the Rayleigh Multipath fading channel
sim('Mph_Rayleigh_channel',Ts*(length(ofdm_tempo)-1));   % ==========the channel is defined in the simulink model "Mph_Rayleigh_channel"
%第二個參數是指時間軸上的長度
Rayleigh_channel = rec_Signal0 ./ofdm_tempo';
% ===============end of the Rayleigh Multipath fading channel

%for n=1:4
%sigma0=sig(3);
for k = 1:length(SNRdB)
    snr_indB =SNRdB(k);
    %if    snr_indB<30 
    %sigma0=1.3;
    %else 
    %sigma0=0.15;
    %end
    
  snr = 10^(snr_indB/10);   
  N0 = Eav/snr;
  if snr_indB<30
      sigma0=sqrt(N0/2);
  elseif snr_indB<50 sigma0 = 2*sqrt (N0/2);    %加入雙邊帶功率譜
  elseif snr_indB<60 sigma0=5*sqrt(N0/2);
  elseif snr_indB<80 sigma0=10*sqrt(N0/2);
  elseif snr_indB<100 sigma0=100*sqrt(N0/2);
  else sigma0=1000*sqrt(N0/2);
  end
    %else sigma0 = 0.015;
    %end
  %if    snr_indB<30 
  %sigma0=1.3;
  %else 
  %sigma0=0.015;
  %end
% =====================noise is added to channel here  
%rec_Signal = awgn(rec_Signal0,snr_indB,'measured');
% ==================then end of the adding noise


% ==================if there is no timing error
%rec_P_tempo = reshape(rec_Signal0,size(tempo_Signal_cp));
rec_P_tempo = reshape(rec_Signal0,size(tempo_Signal_cp));  
%rec_P_tempo = reshape(rec_Signal0,size(tempo_Signal_cp));
rec_tempo_Signal = rec_P_tempo(cp_length +1 : fftdm+cp_length ,:);    % remove cp



rec_freq_Signal_ideal = fft(rec_tempo_Signal,fftdm);         % fft computation
H_ideal=rec_freq_Signal_ideal./P_dSource_pilot;

%rec_freq_Signal=awgn(rec_freq_Signal_ideal,snr_indB,'measured');
rec_freq_Signal=add_noise(rec_freq_Signal_ideal,snr_indB,Eav);
% ==================The start of the channel estimation section

 %if n==1
 %rec_freq_Signal_nopilot = channel_esti_after_em(H_ideal,rec_freq_Signal,Dist,pilotNUM,1);
 %elseif n==2 
 %channel_we_esti = channel_esti_em727m(rec_freq_Signal,Dist,pilotNUM,sigma0,Dist_em);
[channel_we_esti,kh]= channel_esti_em730a(rec_freq_Signal,Dist,pilotNUM,sigma0);
rec_freq_Signal_nopilot = channel_esti_after_em(channel_we_esti,rec_freq_Signal,Dist,pilotNUM,1);
ERR=abs(channel_we_esti-H_ideal);
MSE(k)=sum(sum(ERR))'/(size_P_dSource_pilot(2)*size_P_dSource_pilot(1));
 %elseif n==3
 %rec_freq_Signal_nopilot = channel_esti(rec_freq_Signal,Dist,pilotNUM,1);
 %elseif n==4 
 %rec_freq_Signal_nopilot = channel_esti_intp_time(rec_freq_Signal,Dist,pilotNUM,1);
 %end
% ==================The end of the channel estimation section
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%add something
%H_ideal=rec_freq_Signal_./P_dSource_pilot;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%here

% ===================the STBC decode should be inserted here
  
% ===================end of the STBC decode
rec_freq_Signal_soft = reshape(rec_freq_Signal_nopilot,1,length(rec_freq_Signal_nopilot(1,:)) * length(rec_freq_Signal_nopilot(:,1)) );

%
%F = [1:length(rec_freq_Signal_soft)];
%subplot(2,1,1);
%plot(F(1:32),real(rec_freq_Signal_soft(1:32)));
%subplot(2,1,2);
%plot(F(1:32),imag(rec_freq_Signal_soft(1:32)));


rec_bitSource = ofdmSlice_c(rec_freq_Signal_soft,baseType);
%rec_bitSource = ofdmSlice(rec_freq_Signal_soft,baseType);
BER(k) = bitErrorCalc(bitSource,rec_bitSource);

clc;

     sizekh=size(kh);
     timel=1:sizekh(2);
    % if snr_indB==10
 %    semilogy(timel,kh,'r--x');xlabel('t'),ylabel('iteration number');hold on;
  %    elseif snr_indB==30
  %    semilogy(timel,kh,'b-o');hold on;
   %   elseif snr_indB==50
   %   semilogy(timel,kh,'g-+');hold on;
   %   elseif snr_indB==70
    %  semilogy(timel,kh,'y-*');hold on;
  %   end


    %end                                % =============the end of the SNRindB loop

    %if  n==3 semilogy( SNRdB,BER,'g--o'); xlabel('SNR(dB)'),ylabel('BER');hold on ;
    %elseif n==1 semilogy(SNRdB,BER,'r-*');hold on;
    
    %elseif n==2 semilogy(SNRdB,BER,'b-+');hold on;
    %elseif n==4 semilogy(SNRdB,BER,'y-x');hold on;
         %semilogy( SNRdB,MSE,'r--o'); xlabel('SNR(dB)'),ylabel('MSE');hold on ;
         semilogy( SNRdB,BER,'r--o'); xlabel('SNR(dB)'),ylabel('BER');hold on ; 
         % end
     
 end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av网站免费观看| 94色蜜桃网一区二区三区| 极品瑜伽女神91| av电影天堂一区二区在线| 欧美三级韩国三级日本三斤| 日韩精品一区二区三区三区免费| 精品成人在线观看| 亚洲乱码一区二区三区在线观看| 婷婷综合在线观看| 国产成人在线免费| 欧美日韩国产免费| 国产色综合久久| 日韩精品视频网| 成人动漫av在线| 欧美精品1区2区| 国产精品久久久久影院| 日本va欧美va欧美va精品| 丁香啪啪综合成人亚洲小说| 欧美巨大另类极品videosbest | 国产精品一级二级三级| 激情文学综合网| 91黄色免费观看| 久久精品日产第一区二区三区高清版| 亚洲日本在线a| 国产尤物一区二区| 宅男在线国产精品| 亚洲制服丝袜在线| 成人高清视频在线| 欧美日韩成人在线| 亚洲激情六月丁香| 成人动漫一区二区三区| 久久蜜桃av一区二区天堂 | 成人性生交大片| 日韩一区二区影院| 天堂久久一区二区三区| 欧美亚洲图片小说| 亚洲欧美在线视频| 成人免费毛片高清视频| 亚洲欧美另类小说视频| 国模一区二区三区白浆| 日韩视频中午一区| 奇米影视一区二区三区| 欧美酷刑日本凌虐凌虐| 亚洲综合色自拍一区| 91理论电影在线观看| 国产精品久久久久久妇女6080| 国产乱人伦偷精品视频不卡| 日韩欧美在线一区二区三区| 日欧美一区二区| 欧美日韩午夜影院| 亚洲国产精品久久不卡毛片| 欧美在线综合视频| 亚洲国产综合色| 欧美日韩综合一区| 性做久久久久久| 宅男噜噜噜66一区二区66| 日本91福利区| 精品国产一二三| 国产乱码精品一区二区三区忘忧草| 欧美成人高清电影在线| 美国十次了思思久久精品导航| 51精品秘密在线观看| 亚洲免费色视频| 欧美三级乱人伦电影| 日韩av在线发布| 久久综合久久综合久久综合| 国产精品91一区二区| 国产精品你懂的在线欣赏| 99精品久久久久久| 国产蜜臀97一区二区三区| 94-欧美-setu| 亚洲一区二区四区蜜桃| 制服丝袜在线91| 美日韩一区二区| 久久久一区二区三区捆绑**| 成人av网址在线| 日韩影院在线观看| 欧美精品一区二区不卡| 99久久综合99久久综合网站| 图片区小说区区亚洲影院| 精品第一国产综合精品aⅴ| av影院午夜一区| 丝袜美腿一区二区三区| 久久久三级国产网站| 99久久伊人网影院| 日本不卡1234视频| 国产精品成人午夜| 91精品国产综合久久蜜臀| 国产精品99久| 偷拍一区二区三区| 中文字幕五月欧美| 欧美一区二区三区不卡| 99精品视频一区二区三区| 久久国产婷婷国产香蕉| 中文字幕一区二区三区不卡在线| 欧美精品1区2区| 91麻豆国产自产在线观看| 蜜桃视频免费观看一区| 亚洲美女视频在线| 国产视频一区二区在线| 欧美电影一区二区| 91香蕉视频污| 国产成人午夜视频| 亚洲gay无套男同| 国产精品久久久久永久免费观看| 欧美一级一区二区| 国产乱码精品1区2区3区| 亚洲一二三四在线观看| 国产人成亚洲第一网站在线播放| 在线观看一区二区精品视频| 国产精品996| 国产乱人伦偷精品视频不卡| 奇米精品一区二区三区在线观看| 亚洲精品欧美激情| 国产精品蜜臀av| 久久久天堂av| 精品国产在天天线2019| 欧美麻豆精品久久久久久| 色综合天天综合在线视频| 国产精品亚洲а∨天堂免在线| 日本欧洲一区二区| 婷婷国产在线综合| 亚洲国产美国国产综合一区二区| 日韩一区欧美一区| 国产精品国产三级国产aⅴ无密码| 精品免费99久久| 精品捆绑美女sm三区| 欧美一区二区三区免费大片 | 国产伦精一区二区三区| 蜜臀av国产精品久久久久| 亚洲国产一区视频| 亚洲自拍偷拍麻豆| 一区二区三区免费在线观看| 成人欧美一区二区三区白人| 久久综合丝袜日本网| 2014亚洲片线观看视频免费| 精品国产百合女同互慰| 精品少妇一区二区三区免费观看| 欧美一区二区黄色| 久久网站最新地址| 欧美激情一区二区在线| 欧美韩国日本一区| 亚洲情趣在线观看| 亚洲一区二区三区四区在线| 天涯成人国产亚洲精品一区av| 性做久久久久久| 久久99日本精品| 国产成人午夜精品5599| 99久久er热在这里只有精品66| 91欧美一区二区| 欧美日韩日本视频| 日韩小视频在线观看专区| 精品久久国产字幕高潮| 中文字幕的久久| 亚洲精品成a人| 日韩av一区二区在线影视| 精品一区二区三区在线播放 | 国产精品婷婷午夜在线观看| 精品av久久707| 日本一区二区电影| 久久精品视频在线免费观看| 亚洲欧美在线观看| 一区二区三区在线免费播放| 亚洲免费电影在线| 亚洲视频一区在线| 欧美激情一区二区三区| 亚洲天堂中文字幕| 日韩二区三区在线观看| 国产高清无密码一区二区三区| 99久久精品免费看| 欧美精品在线一区二区三区| 久久精品欧美一区二区三区不卡 | 欧美色倩网站大全免费| 日韩欧美国产一区二区三区| 久久一区二区视频| 一区二区三区中文免费| 日本视频一区二区| 91视视频在线直接观看在线看网页在线看| 欧美性高清videossexo| 欧美日本一道本在线视频| 欧美国产丝袜视频| 日韩精品一区第一页| 9i在线看片成人免费| www.亚洲激情.com| 精品日韩欧美一区二区| 一区二区三区四区av| 国产精品一级黄| 欧美刺激午夜性久久久久久久| 亚洲精品视频在线观看网站| 国产老肥熟一区二区三区| 欧美α欧美αv大片| 奇米精品一区二区三区在线观看一| 欧美综合在线视频| 亚洲成人在线观看视频| 欧美在线观看18| 亚洲精品中文在线| 欧美又粗又大又爽| 亚洲午夜精品在线| 在线综合亚洲欧美在线视频| 日韩黄色免费电影|