generate_channel_structure.m

来自「放大转发协同通信的有关仿真代码」· M 代码 · 共 22 行

M
22
字号
function [channel_structure] = generate_channel_structure();
% Creates the structure for all channel parameters
attenuation_structure = generate_attenuation_structure;
noise_structure = generate_noise_structure;
channel_structure = struct(...
'attenuation', attenuation_structure,... % fading
'noise', noise_structure); % noise
function [fading_structure] = generate_attenuation_structure();
% Creates the structure for all fading parameters
fading_structure = struct(...
'pattern',{},... % 'no', 'Rayleigh'
'distance', {},... % distance
'd', {},... % path loss
'h',{},... % attenuation incl. phaseshift
'h_mag',{},... % magnitude
'phi',{},... % phaseshift
'block_length',{}); % lenth of the block (bit/block)
function [noise_structure] = generate_noise_structure();
% Creates the structure for all noise parameters
noise_structure = struct(...
'SNR',{},... % Signal to Noise Ratio (dB)
'sigma',{}); % sigma of AWGN

⌨️ 快捷键说明

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