• 大小: 3KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-06-12
  • 语言: Matlab
  • 标签: STBC  MIMO  OFDM  

资源简介

STBC-MIMO-OFDM(--已仿真)任意发送天线,任意接收天线的STBC-MIMO-OFDM的MATLAB程序,其中包括完整的PSK调制,STBC编码,信道估计等)

资源截图

代码片段和文件信息

clear all;

i=sqrt(-1);
IFFT_bin_length=512;                                                                 %傅立叶变换抽样点数目 
carrier_count=100;                                                                   %子载波数目
symbols_per_carrier=66;                                                              %符号数/载波
cp_length=10;                                                                        %循环前缀长度
addprefix_length=IFFT_bin_length+cp_length;
M_psk=4;
bits_per_symbol=log2(M_psk);                                                         %位数/符号

%O=[1 2;-2+j 1+j];                                                                   %Alamouti Scheme [x1 x2;-x2* x1*] 二天线发送矩阵
O=[1 -2 -3;2+j 1+j 0;3+j 0 1+j;0 -3+j 2+j];                                          %for [x1 -x2 -x3;x2* x1* 0;x3* 0 x1*;0 -x3* x2*] 三天线发送矩阵
co_time=size(O1);                                                                  
Nt=size(O2);                                                                        %发射天线数目 
Nr=2;                                                                                %接收天线数目

num_X=1;
for cc_ro=1:co_time
    for cc_co=1:Nt
        num_X=max(num_Xabs(real(O(cc_rocc_co))));
    end
end

co_x=zeros(num_X1);

for con_ro=1:co_time                                                                 %计算deltaepsiloneta and conj matrices
    for con_co=1:Nt                                                                  %用于确定矩阵“O”中元素的位置,符号以及共轭情况
        if abs(real(O(con_rocon_co)))~=0
            delta(con_roabs(real(O(con_rocon_co))))=sign(real(O(con_rocon_co))); 
            epsilon(con_roabs(real(O(con_rocon_co))))=con_co;
            co_x(abs(real(O(con_rocon_co)))1)=co_x(abs(real(O(con_rocon_co)))1)+1;
            eta(abs(real(O(con_rocon_co)))co_x(abs(real(O(con_rocon_co)))1))=con_ro;
            coj_mt(con_roabs(real(O(con_rocon_co))))=imag(O(con_rocon_co));
        end
    end
end

eta=eta.‘;                                                                           
eta=sort(eta);
eta=eta.‘;

carriers = (1: carrier_count) + (floor(IFFT_bin_length/4) - floor(carrier_count/2));   % 坐标: (1 to 100) + 14=(15:114)
conjugate_carriers=IFFT_bin_length-carriers+2;                                         % 坐标 :256 - (15:114) + 1= 257 - (15:114) = (242:143) 
tx_training_symbols=training_symbol(Ntcarrier_count);
baseband_out_length = carrier_count * symbols_per_carrier;

snr_min=3;                                                                             %最小信噪比   
snr_max=15;                                                                            %最大信噪比
graph_inf_bit=zeros(snr_max-snr_min+12Nr);                                           %绘图信息存储矩阵
graph_inf_sym=zeros(snr_max-snr_min+12Nr); 

for SNR=snr_min:snr_max                                                                %开始仿真 
  clc
  disp(‘Wait until SNR=‘);disp(snr_max);
  SNR
  n_err_sym=zeros(1Nr);
  n_err_bit=zeros(1

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      11150  2007-07-30 14:17  STBC-MIMO-OFDM.m

     文件        725  2007-07-28 11:59  training_symbol.m

----------- ---------  ---------- -----  ----

                12093                    3


评论

共有 条评论