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

📄 fskcapacity.m

📁 1、HSDPA; 2、LTE; 3、turbo code; 4、Mobile WiMAX; 5、LDPC
💻 M
📖 第 1 页 / 共 2 页
字号:
% File CapacityScenarios
%
% This is a set of scenarios for the Coded Modulation Library.
%
% The simulations specified in this file are for the Shannon capacity
% under FSK modulation constraints.
%
% Last updated on Oct. 12, 2007

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

% determine where to store your files
base_name = 'capacity';
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

few_trials = 20;
many_trials = 200;

epsilon = 1e-3;

% AWGN+8FSK

% CM Capacity (coherent)
record = 1; % coherent
sim_param(record).comment = 'CM Capacity of 8-FSK in AWGN';
sim_param(record).sim_type = 'capacity';
sim_param(record).SNR = [-20:0.5:20];
sim_param(record).SNR_type = 'Es/No in dB';
sim_param(record).framesize = 10000;
sim_param(record).modulation = 'FSK';
sim_param(record).csi_flag = 0; %coherent
sim_param(record).mod_order = 8;
sim_param(record).channel = 'AWGN';
sim_param(record).bicm = 0;
sim_param(record).demod_type = 0; % does not matter if not BICM
sim_param(record).linetype = 'k-';
sim_param(record).legend = sim_param(record).comment;
sim_param(record).filename = strcat( data_directory, 'CM_8FSK_AWGN.mat');
sim_param(record).reset = 0;
sim_param(record).max_trials = 501*ones( size(sim_param(record).SNR) );
sim_param(record).save_rate = 20;

record = 2; % non-coherent (CSI)
sim_param(record).comment = 'CM Capacity of 8-NFSK in AWGN (CSI)';
sim_param(record).sim_type = 'capacity';
sim_param(record).SNR = [-20:0.5:20];
sim_param(record).SNR_type = 'Es/No in dB';
sim_param(record).framesize = 10000;
sim_param(record).modulation = 'FSK';
sim_param(record).csi_flag = 1; % noncoherent (CSI)
sim_param(record).mod_order = 8;
sim_param(record).channel = 'AWGN';
sim_param(record).bicm = 0;
sim_param(record).demod_type = 0; % does not matter if not BICM
sim_param(record).linetype = 'b-';
sim_param(record).legend = sim_param(record).comment;
sim_param(record).filename = strcat( data_directory, 'CM_8NFSK_AWGN_CSI.mat');
sim_param(record).reset = 0;
sim_param(record).max_trials = 501*ones( size(sim_param(record).SNR) );
sim_param(record).save_rate = 20;

record = 3; % non-coherent (no CSI)
sim_param(record).comment = 'CM Capacity of 8-NFSK in AWGN (NCSI)';
sim_param(record).sim_type = 'capacity';
sim_param(record).SNR = [-20:0.5:20];
sim_param(record).SNR_type = 'Es/No in dB';
sim_param(record).framesize = 10000;
sim_param(record).modulation = 'FSK';
sim_param(record).csi_flag = 2; % noncoherent (NCSI)
sim_param(record).mod_order = 8;
sim_param(record).channel = 'AWGN';
sim_param(record).bicm = 0;
sim_param(record).demod_type = 0; % does not matter if not BICM
sim_param(record).linetype = 'r-';
sim_param(record).legend = sim_param(record).comment;
sim_param(record).filename = strcat( data_directory, 'CM_8NFSK_AWGN_NCSI.mat');
sim_param(record).reset = 0;
sim_param(record).max_trials = 500*ones( size(sim_param(record).SNR) );
sim_param(record).save_rate = 20;

% BICM (log-MAP)
record = 4; % coherent
sim_param(record).comment = 'BICM-MAP Capacity of 8-FSK in AWGN';
sim_param(record).sim_type = 'capacity';
sim_param(record).SNR = [-20:0.5:20];
sim_param(record).SNR_type = 'Es/No in dB';
sim_param(record).framesize = 10000;
sim_param(record).modulation = 'FSK';
sim_param(record).csi_flag = 0; %coherent
sim_param(record).mod_order = 8;
sim_param(record).channel = 'AWGN';
sim_param(record).bicm = 1;
sim_param(record).demod_type = 0; % MAP
sim_param(record).linetype = 'k--';
sim_param(record).legend = sim_param(record).comment;
sim_param(record).filename = strcat( data_directory, 'BICM_MAP_8FSK_AWGN.mat');
sim_param(record).reset = 0;
sim_param(record).max_trials = 500*ones( size(sim_param(record).SNR) );
sim_param(record).save_rate = 20;

record = 5; % non-coherent (CSI)
sim_param(record).comment = 'BICM-MAP Capacity of 8-NFSK in AWGN (CSI)';
sim_param(record).sim_type = 'capacity';
sim_param(record).SNR = [-20:0.5:20];
sim_param(record).SNR_type = 'Es/No in dB';
sim_param(record).framesize = 10000;
sim_param(record).modulation = 'FSK';
sim_param(record).csi_flag = 1; % noncoherent (CSI)
sim_param(record).mod_order = 8;
sim_param(record).channel = 'AWGN';
sim_param(record).bicm = 1;
sim_param(record).demod_type = 0; % MAP
sim_param(record).linetype = 'b--';
sim_param(record).legend = sim_param(record).comment;
sim_param(record).filename = strcat( data_directory, 'BICM_MAP_8NFSK_AWGN_CSI.mat');
sim_param(record).reset = 0;
sim_param(record).max_trials = 500*ones( size(sim_param(record).SNR) );
sim_param(record).save_rate = 20;

record = 6; % non-coherent (no CSI)
sim_param(record).comment = 'CM Capacity of 8-NFSK in AWGN (NCSI)';
sim_param(record).sim_type = 'capacity';
sim_param(record).SNR = [-20:0.5:20];
sim_param(record).SNR_type = 'Es/No in dB';
sim_param(record).framesize = 10000;
sim_param(record).modulation = 'FSK';
sim_param(record).csi_flag = 2; % noncoherent (NCSI)
sim_param(record).mod_order = 8;
sim_param(record).channel = 'AWGN';
sim_param(record).bicm = 1;
sim_param(record).demod_type = 0; % MAP
sim_param(record).linetype = 'r--';
sim_param(record).legend = sim_param(record).comment;
sim_param(record).filename = strcat( data_directory, 'BICM_MAP_8NFSK_AWGN_NCSI.mat');
sim_param(record).reset = 0;
sim_param(record).max_trials = 500*ones( size(sim_param(record).SNR) );
sim_param(record).save_rate = 20;

% BICM (max-log-MAP)
record = 7; % coherent
sim_param(record).comment = 'BICM-MLM Capacity of 8-FSK in AWGN';
sim_param(record).sim_type = 'capacity';
sim_param(record).SNR = [-20:0.5:20];
sim_param(record).SNR_type = 'Es/No in dB';
sim_param(record).framesize = 10000;
sim_param(record).modulation = 'FSK';
sim_param(record).csi_flag = 0; %coherent
sim_param(record).mod_order = 8;
sim_param(record).channel = 'AWGN';
sim_param(record).bicm = 1;
sim_param(record).demod_type = 1; % ML-MAP
sim_param(record).linetype = 'k:';
sim_param(record).legend = sim_param(record).comment;
sim_param(record).filename = strcat( data_directory, 'BICM_MLM_8FSK_AWGN.mat');
sim_param(record).reset = 0;
sim_param(record).max_trials = 500*ones( size(sim_param(record).SNR) );
sim_param(record).save_rate = 20;

record = 8; % non-coherent (CSI)
sim_param(record).comment = 'BICM-MLM Capacity of 8-NFSK in AWGN (CSI)';
sim_param(record).sim_type = 'capacity';
sim_param(record).SNR = [-20:0.5:20];
sim_param(record).SNR_type = 'Es/No in dB';
sim_param(record).framesize = 10000;
sim_param(record).modulation = 'FSK';
sim_param(record).csi_flag = 1; % noncoherent (CSI)
sim_param(record).mod_order = 8;
sim_param(record).channel = 'AWGN';
sim_param(record).bicm = 1;
sim_param(record).demod_type = 1; % ML-MAP
sim_param(record).linetype = 'b:';
sim_param(record).legend = sim_param(record).comment;
sim_param(record).filename = strcat( data_directory, 'BICM_MLM_8NFSK_AWGN_CSI.mat');
sim_param(record).reset = 0;
sim_param(record).max_trials = 500*ones( size(sim_param(record).SNR) );
sim_param(record).save_rate = 20;

record = 9; % non-coherent (no CSI)
sim_param(record).comment = 'BICM-MLM Capacity of 8-NFSK in AWGN (NCSI)';
sim_param(record).sim_type = 'capacity';

⌨️ 快捷键说明

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