📄 generate_channel_structure.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -