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

📄 generate_channel_structure.m

📁 放大转发协同通信的有关仿真代码
💻 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 + -