⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wimaxctcscenarios.m

📁 iterative 解码库,matlab 和 c写的
💻 M
📖 第 1 页 / 共 4 页
字号:
% File WiMaxLDPCScenarios
%
% This is a set of scenarios for the Coded Modulation Library.
%
% The simulations specified in this file are for the convolutional turbo
% code used by the mobile WiMAX standard
%
% Last updated on Oct. 12, 2007

% determine where your root directory is
load( 'CmlHome.mat' );

% determine where to store your files
base_name = 'WiMaxCTC';
if ispc
    data_directory = strcat( '\output\', base_name, '\' );
else
    data_directory = strcat( '/output/', base_name, '/' );
end

full_directory = strcat( cml_home, data_directory );
if ~exist( full_directory, 'dir' )
    mkdir( full_directory);
end

MINBER = 3e-6;
num_errors = 200;
mapping_16 = [13  9  1  5 ...
              12  8  0  4 ...
              14 10  2  6 ...
              15 11  3  7];
          
mapping_64 = [59 51 35 43 11  3 19 27 ...
              58 50 34 42 10  2 18 26 ...
              56 48 32 40  8  0 16 24 ...
              57 49 33 41  9  1 17 25 ...
              61 53 37 45 13  5 21 29 ...
              60 52 36 44 12  4 20 28 ...
              62 54 38 46 14  6 22 30 ...
              63 55 39 47 15  7 23 31];
              

% (12,6) QPSK
record = 1;
sim_param(record).framesize = 6*8;
sim_param(record).code_bits_per_frame = 12*8;
sim_param(record).modulation = 'QPSK';
sim_param(record).mod_order = 4;
sim_param(record).channel = 'AWGN';
sim_param(record).filename = strcat( data_directory, sim_param(record).modulation, ...
    int2str( sim_param(record).code_bits_per_frame), 'comma', int2str( sim_param(record).framesize), ...
    sim_param(record).channel, '.mat');
sim_param(record).comment = sprintf( '(%d,%d) %s %s', sim_param(record).code_bits_per_frame/8, sim_param(record).framesize/8, ...
    sim_param(record).modulation, sim_param(record).channel  );
sim_param(record).legend = sim_param(record).comment;
sim_param(record).sim_type = 'coded';
sim_param(record).code_configuration = 5; % Wimax CTC
sim_param(record).SNR = [0:0.5:10];
sim_param(record).SNR_type = 'Eb/No in dB';
sim_param(record).bicm = 0;
sim_param(record).demod_type = 0; % linear-log-MAP demapper
sim_param(record).decoder_type = 0; % linear-log-MAP demapper
sim_param(record).max_iterations = 10;
sim_param(record).reset = 0;
sim_param(record).max_trials = 1e9*ones( size(sim_param(record).SNR) );
sim_param(record).minBER = MINBER; 
sim_param(record).max_frame_errors = num_errors*ones( size(sim_param(record).SNR) );
sim_param(record).plot_iterations = sim_param(record).max_iterations;
sim_param(record).save_rate = floor(1e6/sim_param(record).framesize); % save every million data bits
sim_param(record).linetype = 'k-';

% (24,12) QPSK
record = 2;
sim_param(record).framesize = 12*8;
sim_param(record).code_bits_per_frame = 24*8;
sim_param(record).modulation = 'QPSK';
sim_param(record).mod_order = 4;
sim_param(record).channel = 'AWGN';
sim_param(record).filename = strcat( data_directory, sim_param(record).modulation, ...
    int2str( sim_param(record).code_bits_per_frame), 'comma', int2str( sim_param(record).framesize), ...
    sim_param(record).channel, '.mat');
sim_param(record).comment = sprintf( '(%d,%d) %s %s', sim_param(record).code_bits_per_frame/8, sim_param(record).framesize/8, ...
    sim_param(record).modulation, sim_param(record).channel  );
sim_param(record).legend = sim_param(record).comment;
sim_param(record).sim_type = 'coded';
sim_param(record).code_configuration = 5; % Wimax CTC
sim_param(record).SNR = [0:0.5:10];
sim_param(record).SNR_type = 'Eb/No in dB';
sim_param(record).bicm = 0;
sim_param(record).demod_type = 0; % linear-log-MAP demapper
sim_param(record).decoder_type = 0; % linear-log-MAP demapper
sim_param(record).max_iterations = 10;
sim_param(record).reset = 0;
sim_param(record).max_trials = 1e9*ones( size(sim_param(record).SNR) );
sim_param(record).minBER = MINBER; 
sim_param(record).max_frame_errors = num_errors*ones( size(sim_param(record).SNR) );
sim_param(record).plot_iterations = sim_param(record).max_iterations;
sim_param(record).save_rate = floor(1e6/sim_param(record).framesize);
sim_param(record).linetype = 'k-';

% (36,18) QPSK
record = 3;
sim_param(record).framesize = 18*8;
sim_param(record).code_bits_per_frame = 36*8;
sim_param(record).modulation = 'QPSK';
sim_param(record).mod_order = 4;
sim_param(record).channel = 'AWGN';
sim_param(record).filename = strcat( data_directory, sim_param(record).modulation, ...
    int2str( sim_param(record).code_bits_per_frame), 'comma', int2str( sim_param(record).framesize), ...
    sim_param(record).channel, '.mat');
sim_param(record).comment = sprintf( '(%d,%d) %s %s', sim_param(record).code_bits_per_frame/8, sim_param(record).framesize/8, ...
    sim_param(record).modulation, sim_param(record).channel  );
sim_param(record).legend = sim_param(record).comment;
sim_param(record).sim_type = 'coded';
sim_param(record).code_configuration = 5; % Wimax CTC
sim_param(record).SNR = [0:0.25:10];
sim_param(record).SNR_type = 'Eb/No in dB';
sim_param(record).bicm = 0;
sim_param(record).demod_type = 0; % linear-log-MAP demapper
sim_param(record).decoder_type = 0; % linear-log-MAP demapper
sim_param(record).max_iterations = 10;
sim_param(record).reset = 0;
sim_param(record).max_trials = 1e9*ones( size(sim_param(record).SNR) );
sim_param(record).minBER = MINBER; 
sim_param(record).max_frame_errors = num_errors*ones( size(sim_param(record).SNR) );
sim_param(record).plot_iterations = sim_param(record).max_iterations;
sim_param(record).save_rate = floor(1e6/sim_param(record).framesize);
sim_param(record).linetype = 'k-';

% (48,24) QPSK
record = 4;
sim_param(record).framesize = 24*8;
sim_param(record).code_bits_per_frame = 48*8;
sim_param(record).modulation = 'QPSK';
sim_param(record).mod_order = 4;
sim_param(record).channel = 'AWGN';
sim_param(record).filename = strcat( data_directory, sim_param(record).modulation, ...
    int2str( sim_param(record).code_bits_per_frame), 'comma', int2str( sim_param(record).framesize), ...
    sim_param(record).channel, '.mat');
sim_param(record).comment = sprintf( '(%d,%d) %s %s', sim_param(record).code_bits_per_frame/8, sim_param(record).framesize/8, ...
    sim_param(record).modulation, sim_param(record).channel  );
sim_param(record).legend = sim_param(record).comment;
sim_param(record).sim_type = 'coded';
sim_param(record).code_configuration = 5; % Wimax CTC
sim_param(record).SNR = [0:0.25:10];
sim_param(record).SNR_type = 'Eb/No in dB';
sim_param(record).bicm = 0;
sim_param(record).demod_type = 0; % linear-log-MAP demapper
sim_param(record).decoder_type = 0; % linear-log-MAP demapper
sim_param(record).max_iterations = 10;
sim_param(record).reset = 0;
sim_param(record).max_trials = 1e9*ones( size(sim_param(record).SNR) );
sim_param(record).minBER = MINBER; 
sim_param(record).max_frame_errors = num_errors*ones( size(sim_param(record).SNR) );
sim_param(record).plot_iterations = sim_param(record).max_iterations;
sim_param(record).save_rate = floor(1e6/sim_param(record).framesize);
sim_param(record).linetype = 'k-';

% (60,30) QPSK
record = 5;
sim_param(record).framesize = 30*8;
sim_param(record).code_bits_per_frame = 60*8;
sim_param(record).modulation = 'QPSK';
sim_param(record).mod_order = 4;
sim_param(record).channel = 'AWGN';
sim_param(record).filename = strcat( data_directory, sim_param(record).modulation, ...
    int2str( sim_param(record).code_bits_per_frame), 'comma', int2str( sim_param(record).framesize), ...
    sim_param(record).channel, '.mat');
sim_param(record).comment = sprintf( '(%d,%d) %s %s', sim_param(record).code_bits_per_frame/8, sim_param(record).framesize/8, ...
    sim_param(record).modulation, sim_param(record).channel  );
sim_param(record).legend = sim_param(record).comment;
sim_param(record).sim_type = 'coded';
sim_param(record).code_configuration = 5; % Wimax CTC
sim_param(record).SNR = [0:0.25:10];
sim_param(record).SNR_type = 'Eb/No in dB';
sim_param(record).bicm = 0;
sim_param(record).demod_type = 0; % linear-log-MAP demapper
sim_param(record).decoder_type = 0; % linear-log-MAP demapper
sim_param(record).max_iterations = 10;
sim_param(record).reset = 0;
sim_param(record).max_trials = 1e9*ones( size(sim_param(record).SNR) );
sim_param(record).minBER = MINBER; 
sim_param(record).max_frame_errors = num_errors*ones( size(sim_param(record).SNR) );
sim_param(record).plot_iterations = sim_param(record).max_iterations;
sim_param(record).save_rate = floor(1e6/sim_param(record).framesize);
sim_param(record).linetype = 'k-';

% (72,36) QPSK
record = 6;
sim_param(record).framesize = 36*8;
sim_param(record).code_bits_per_frame = 72*8;
sim_param(record).modulation = 'QPSK';
sim_param(record).mod_order = 4;
sim_param(record).channel = 'AWGN';
sim_param(record).filename = strcat( data_directory, sim_param(record).modulation, ...
    int2str( sim_param(record).code_bits_per_frame), 'comma', int2str( sim_param(record).framesize), ...
    sim_param(record).channel, '.mat');
sim_param(record).comment = sprintf( '(%d,%d) %s %s', sim_param(record).code_bits_per_frame/8, sim_param(record).framesize/8, ...
    sim_param(record).modulation, sim_param(record).channel  );
sim_param(record).legend = sim_param(record).comment;
sim_param(record).sim_type = 'coded';
sim_param(record).code_configuration = 5; % Wimax CTC
sim_param(record).SNR = [0:0.25:10];
sim_param(record).SNR_type = 'Eb/No in dB';
sim_param(record).bicm = 0;
sim_param(record).demod_type = 0; % linear-log-MAP demapper
sim_param(record).decoder_type = 0; % linear-log-MAP demapper
sim_param(record).max_iterations = 10;
sim_param(record).reset = 0;
sim_param(record).max_trials = 1e9*ones( size(sim_param(record).SNR) );
sim_param(record).minBER = MINBER; 
sim_param(record).max_frame_errors = num_errors*ones( size(sim_param(record).SNR) );
sim_param(record).plot_iterations = sim_param(record).max_iterations;
sim_param(record).save_rate = floor(1e6/sim_param(record).framesize);
sim_param(record).linetype = 'k-';

% (96,48) QPSK
record = 7;
sim_param(record).framesize = 48*8;
sim_param(record).code_bits_per_frame = 96*8;
sim_param(record).modulation = 'QPSK';
sim_param(record).mod_order = 4;
sim_param(record).channel = 'AWGN';
sim_param(record).filename = strcat( data_directory, sim_param(record).modulation, ...
    int2str( sim_param(record).code_bits_per_frame), 'comma', int2str( sim_param(record).framesize), ...
    sim_param(record).channel, '.mat');
sim_param(record).comment = sprintf( '(%d,%d) %s %s', sim_param(record).code_bits_per_frame/8, sim_param(record).framesize/8, ...
    sim_param(record).modulation, sim_param(record).channel  );
sim_param(record).legend = sim_param(record).comment;
sim_param(record).sim_type = 'coded';
sim_param(record).code_configuration = 5; % Wimax CTC
sim_param(record).SNR = [0:0.2:10];
sim_param(record).SNR_type = 'Eb/No in dB';
sim_param(record).bicm = 0;
sim_param(record).demod_type = 0; % linear-log-MAP demapper
sim_param(record).decoder_type = 0; % linear-log-MAP demapper
sim_param(record).max_iterations = 10;
sim_param(record).reset = 0;
sim_param(record).max_trials = 1e9*ones( size(sim_param(record).SNR) );
sim_param(record).minBER = MINBER; 
sim_param(record).max_frame_errors = num_errors*ones( size(sim_param(record).SNR) );
sim_param(record).plot_iterations = sim_param(record).max_iterations;
sim_param(record).save_rate = floor(1e6/sim_param(record).framesize);
sim_param(record).linetype = 'k-';

% (108,54) QPSK
record = 8;
sim_param(record).framesize = 54*8;
sim_param(record).code_bits_per_frame = 108*8;
sim_param(record).modulation = 'QPSK';
sim_param(record).mod_order = 4;
sim_param(record).channel = 'AWGN';

⌨️ 快捷键说明

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