set_sim_consts2.m

来自「LDPC码在TD-SCDMA系统中的应用仿真程序」· M 代码 · 共 24 行

M
24
字号
function sim_consts = set_sim_consts
% set the parameters used in the simulation.

    global sim_consts;
    
    % downlink's parameters;
    
    sim_consts.ferrlim = 300 ;                                    % the max error frame number
    sim_consts.nframeAll = 1000 ;                                  % the max number of frame
    sim_consts.errAll = 300;                                     % the max error bit number
    %  sim_consts.EbN0 = [-15.0  -10.0 -5.0 -4 -2 0 1.0 2.0 ] ;   % Signal Noise Ratio
    sim_consts.EbN0 = [ -3:0.1:0 ] ;                                  % Signal Noise Ratio
    sim_consts.a = 1 ;    
    
    sim_consts.hsig = zeros(8,864);                             % init 8 antennas's h
    sim_consts.gu = zeros(8,4);                                 % init 8 antennas's estimated h
    
    
    % turbo codec's parameters
    sim_consts.dec_alg = 1;    
    sim_consts.L_total = 234;	 % infomation bits plus tail bits
    sim_consts.g = [ 1 1 1; 1 0 1 ];     
    sim_consts.puncture = 1;
    sim_consts.niter = 8;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?