function LtePar=lteparset(simtype,num_ue)
%% 仿真参数配置,被SIM_SISO_TEST调用
% 作者: 赵龙海
% 2012 哈工大通信所
% simtype=1 SUSISO-- Single User Single input and Single output
% simtype=2 MUSISO-- MultiUser Single input and Single output
% simtype=3 SUMIMO-- Single User Single input and Single output
% simtype=4 MUMIMO-- MultiUser Single input and Single output
%
% if length(varargin)>1
% error('No such functionality yet. Try ''ltepar=lteparset( simtype )'' instead.')
% end
LtePar.release='r10'; % LTE version
if simtype==1
LtePar.SimType='SUSISO'; % simulation type, SUSISO, MUSISO, SUMIMO, MUMIMO
elseif simtype==2
LtePar.SimType='MUSISO';
elseif simtype==3
LtePar.SimType='SUSISO_1_4M'; %
elseif simtype==4
LtePar.SimType='Fading_Test1x1'; % 1x1 Fading
elseif simtype==5
LtePar.SimType='SU_MIMO2x2'; % Open Loop Spatial Multiplexing
elseif simtype==6
LtePar.SimType='SU_SIMO1x2' ; % Rx Diversity
elseif simtype==7
LtePar.SimType='SU_MIMO4x4'; %
elseif simtype==8
LtePar.SimType='MU_SISO1x1';
else
error('not implemented yet');
end
LtePar.PRB=180e3; % Physical Resource Block Bandwidth (Hz)
LtePar.SubcarrierSpacing=15e3; % Subcarrier spacing (Hz)
LtePar.Nsc=12; % Number of subcarriers of one PRB
LtePar.CarrierFrequency=2e9; % GHz
LtePar.SpeedOfLight=3e8;
%% SimType Configuration
%% SUSISO
if strcmp(LtePar.SimType,'SUSISO')
LtePar.Bandwidth=10e6; % system bandwidth (Hz) 10MHz
LtePar.UEpar.mode=1; % trasmission model: 1, single antenna; 2, receiver diversity; 3, OLSM; 4, CLSM; 5 MUMIMO;
LtePar.UEpar.nTX=1; % number of antennas
LtePar.UEpar.speed=1/3.6; % user speed
LtePar.UEpar.nCodewords=1;
LtePar.UEpar.nLayers=1;
LtePar.BSpar.channel_estimation_method='PERFECT'; % 'PERFECT', 'LS', 'MMSE'
LtePar.BSpar.receiver='MMSE'; % 'MMSE' 'ZF'
LtePar.BSpar.nRX=1;
LtePar.nUE=1;
LtePar.nBS=1;
LtePar.ChanModPar.ChanType='AWGN'; % 'AWGN', 'PDP', 'WINNER2'
LtePar.Scheduler='Round Robin'; % Round Robin , PF , max CI
%% MUSISO
elseif strcmp(LtePar.SimType,'MUSISO')
LtePar.Bandwidth=10e6; % system bandwidth (Hz) 10MHz
LtePar.UEpar.mode=1;
LtePar.UEpar.nTX=1;
LtePar.UEpar.speed=1/3.6;
LtePar.UEpar.nCodewords=1;
LtePar.UEpar.nLayers=1;
LtePar.BSpar.channel_estimation_method='PERFECT';
LtePar.BSpar.receiver='MMSE'; % 'MMSE' 'ZF'
LtePar.BSpar.nRX=1;
%
LtePar.nUE=num_ue;
ltePar.nBS=1;
LtePar.ChanModPar.ChanType='AWGN'; % 'AWGN', 'PDP', 'WINNER2'
LtePar.Scheduler='Round Robin'; % Round Robin , PF , max CI
%% SUSISO_1_4M
elseif strcmp(LtePar.SimType,'SUSISO_1_4M')
LtePar.Bandwidth=1.4e6; % system bandwidth (Hz) 10MHz
LtePar.UEpar.mode=1; % trasmission model: 1, single antenna; 2, transmit diversity; 3, OLSM; 4, CLSM; 5 MUMIMO;
LtePar.UEpar.nTX=1; % number of antennas
LtePar.UEpar.speed=1/3.6; % user speed
LtePar.UEpar.nCodewords=1;
LtePar.UEpar.nLayers=1;
LtePar.BSpar.channel_estimation_method='PERFECT'; % 'PERFECT', 'LS', 'MMSE'
LtePar.BSpar.receiver='MMSE'; % 'MMSE' 'ZF'
LtePar.BSpar.nRX=1;
LtePar.nUE=1;
LtePar.nBS=1;
LtePar.ChanModPar.ChanType='AWGN'; % 'AWGN', 'PDP', 'WINNER2'
LtePar.Scheduler='Round Robin'; % Round Robin , PF , max CI
%% Fading Test
elseif strcmp(LtePar.SimType,'Fading_Test1x1')
LtePar.Bandwidth=1.4e6; % system bandwidth (Hz) 1.4MHz
LtePar.UEpar.mode=1; % trasmission model: 1, single antenna; 2, transmit diversity; 3, OLSM; 4, CLSM; 5 MUMIMO;
LtePar.UEpar.nTX=1; % number of antennas
LtePar.UEpar.speed=1/3.6; % user speed
LtePar.UEpar.nCodewords=1;
LtePar.UEpar.nLayers=1;
LtePar.BSpar.channel_estimation_method='PERFECT'; % 'PERFECT', 'LS', 'MMSE'
LtePar.BSpar.receiver='ZF'; % 'MMSE' 'ZF'
LtePar.BSpar.nRX=1;
LtePar.nUE=1;
LtePar.nBS=1;
LtePar.ChanModPar.ChanType='TU'; % 'AWGN', 'TU','PedB', 'WINNER2'
LtePar.Scheduler='Round Robin'; % Round Robin , PF , max CI
LtePar.ChanModPar.FadeType='Block Fading'; % 'Fast Fading', 'Block Fading'
%LtePar.ChanModPar.CorrType='correlated';
LtePar.ChanModPar.CorrType='independent';
%% SU_MIMO2x2
elseif strcmp(LtePar.SimType,'SU_MIMO2x2')
LtePar.Bandwidth=1.4e6;
LtePar.UEpar.mode=3; % trasmission model: 1, single antenna; 2, transmit diversity; 3, OLSM; 4, CLSM; 5 MUMIMO;
LtePar.UEpar.nTX=2; % number of antennas
LtePar.UEpar.speed=2/3.6; % user speed
LtePar.UEpar.nCodewords=1;
LtePar.UEpar.nLayers=2;
LtePar.BSpar.channel_estimation_method='PERFECT'; % 'PERFECT', 'LS', 'MMSE'
LtePar.BSpar.receiver='ZF'; % 'MMSE' 'ZF'
LtePar.BSpar.nRX=2;
LtePar.nUE=1;
LtePar.nBS=1;
LtePar.ChanModPar.ChanType='TU'; % AWGN TU PedB PedA
LtePar.Scheduler='Round Robin'; % Round Robin , PF , max CI
LtePar.ChanModPar.FadeType='Block Fading'; % 'Fast Fading', 'Block Fading'
%LtePar.ChanModPar.CorrType='correlated';
LtePar.ChanModPar.CorrType='independent';
%% SU_SIMO1x2
elseif strcmp(LtePar.SimType,'SU_SIMO1x2')
LtePar.Bandwidth=1.4e6;
LtePar.UEpar.mode=2; % trasmission model: 1, single antenna; 2, receiver diversity; 3, OLSM; 4, CLSM; 5 MUMIMO;
LtePar.UEpar.nTX=1; % number of antennas
LtePar.UEpar.speed=2/3.6; % user speed
LtePar.UEpar.nCodewords=1;
LtePar.UEpar.nLayers=1;
LtePar.BSpar.channel_estimation_method='PERFECT'; % 'PERFECT', 'LS', 'MMSE'
LtePar.BSpar.receiver='ZF'; % 'MMSE' 'ZF'
LtePar.BSpar.nRX=2;
LtePar.nUE=1;
LtePar.nBS=1;
LtePar.ChanModPar.ChanType='TU'; % AWGN TU PedB PedA
LtePar.Scheduler='Round Robin'; % Round Robin , PF , max CI
LtePar.ChanModPar.FadeType='Block Fading'; % 'Fast Fading', 'Block Fading'
LtePar.ChanModPar.CorrType='independent';
%% SU_MIMO4x4
elseif strcmp(LtePar.SimType,'SU_MIMO4x4')
LtePar.Bandwidth=1.4e6;
LtePar.UEpar.mode=3; % trasmission model: 1, single antenna; 2, transmit diversity; 3, OLSM; 4, CLSM; 5 MUMIMO;
LtePar.UEpar.nTX=4; % number of antennas
LtePar.UEpar.speed=2/3.6; % user speed
LtePar.UEpar.nCodewords=2;
LtePar.UEpar.nLayers=4;
LtePar.BSpar.channel_estimation_method='PERFECT'; % 'PERFECT', 'LS', 'MMSE'
LtePar.BSpar.receiver='ZF'; % 'MMSE' 'ZF'
LtePar.BSpar.nRX=4;
LtePar.nUE=1;
LtePar.nBS=1;
LtePar.ChanModPar.ChanType='TU'; % AWGN TU PedB PedA
LtePar.Scheduler='Round Robin'; % Round Robin , PF , max CI
LtePar.ChanModPar.FadeType='Block Fading'; % 'Fast Fading', 'Block Fading'
%LtePar.ChanModPar.CorrType='correlated';
LtePar.ChanModPar.CorrType='independent';
%% MU_SISO1x1
elseif strcmp(LtePar.SimType,'MU_SISO1x1')
LtePar.Bandwidth=5e6;%1.4e6;
LtePar.UEpar.mode=1; % trasmission model: 1, single antenna; 2, transmit diversity; 3, OLSM; 4, CLSM; 5 MUMIMO;
LtePar.UEpar.nTX=1; % number of antennas
LtePar.UEpar.speed=1/3.6; % user speed
LtePar.UEpar.nCodewords=1;
LtePar.UEpar.nLayers=1;
LtePar.BSpar.channel_estimation_method='PERFECT'; % 'PERFECT', 'LS', 'MMSE'
LtePar.BSpar.receiver='ZF'; % 'MMSE' 'ZF'
LtePar.BSpar.nRX=1;
LtePar.nUE=num_ue;
LtePar.nBS=1;
LtePar.ChanModPar.ChanType='TU'; % AWGN TU PedB PedA
LtePar.Scheduler='max CI'; % Round Robin , PF , max CI
LtePar.ChanModPar.FadeType='Block Fading'; % 'Fast Fading', 'Block Fading'
%LtePar.ChanModPar.CorrType='correlated';
LtePar.ChanModPar.CorrType='independent';
else
error('not implemented yet');
end
if(LtePar.Bandwidth==1.4e6)
LtePar.Nrb=6;
else
LtePar.Nrb=(LtePar.Bandwidth*0.9)/LtePar.PRB;
end
LtePar.Ntot=LtePar.Nsc*LtePar.Nrb; % Number of subcarriers of all PRBs
LtePar.HARQ=false; % false : No HARQ;
LtePar.OFDM_mode=0; % 0: SC-FDMA 1: OFDM
%% FFT Lengths ,CP lengths
LtePar.FrameDur=10e-3; % Frame duration (s)
if(LtePar.Bandwidth==15e6)
LtePar.Nfft=1536; % Number of FFT points
else
LtePar.Nfft=2^ceil(log2(LtePar.Ntot));
end
LtePar.Fs=LtePar.SubcarrierSpacing*LtePar.Nfft; % Sampling frequency (Hz)
LtePar
没有合适的资源?快使用搜索试试~ 我知道了~
【通信仿真】最大能量效率的SCMA系统功率分配算法设计【含Matlab源码 2475期】.zip
共27个文件
m:22个
png:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 131 浏览量
2024-06-22
11:41:16
上传
评论
收藏 75KB ZIP 举报
温馨提示
Matlab领域上传的代码均可运行,亲测可用,直接替换数据即可,适合小白; 1、代码压缩包内容 主函数:main.m; 调用函数:其他m文件;无需运行 运行结果效果图; 2、代码运行版本 Matlab 2019b;若运行有误,根据提示修改;若不会,私信博主; 3、运行操作步骤 步骤一:将所有文件放到Matlab的当前文件夹中; 步骤二:双击打开main.m文件; 步骤三:点击运行,等程序运行完得到结果; 4、仿真咨询 如需其他服务,可私信博主或扫描博客文章底部QQ名片; 4.1 博客或资源的完整代码提供 4.2 期刊或参考文献复现 4.3 Matlab程序定制 4.4 科研合作 功率谱估计: 故障诊断分析: 雷达通信:雷达LFM、MIMO、成像、定位、干扰、检测、信号分析、脉冲压缩 滤波估计:SOC估计 目标定位:WSN定位、滤波跟踪、目标定位 生物电信号:肌电信号EMG、脑电信号EEG、心电信号ECG 通信系统:DOA估计、编码译码、变分模态分解、管道泄漏、滤波器、数字信号处理+传输+分析+去噪、数字信号调制、误码率、信号估计、DTMF、信号检测识别融合、LEACH协议、信号检测、水声通信
资源推荐
资源详情
资源评论
收起资源包目录
【通信仿真】最大能量效率的SCMA系统功率分配算法设计【含Matlab源码 2475期】.zip (27个子文件)
【通信仿真】基于matlab最大能量效率的SCMA系统功率分配算法设计【含Matlab源码 2475期】
ingroup.m 9KB
lteparset3.m 6KB
lteparset2.m 6KB
calculate_SC_REC.m 505B
3.png 8KB
poly_EE_qua.m 1KB
conopti.m 421B
LTE_pathloss_enb_to_ue.m 499B
main.m 12KB
LTE_init_create_eNodeB_7cell.m 2KB
1.png 6KB
poly_EE_log.m 1KB
lteparset.m 20KB
LTE_init_create_eNodeB.m 1KB
+antennas
antenna.m 495B
omnidirectionalAntenna.m 572B
TS36942Antenna.m 823B
bergerAntenna.m 777B
kathreinTSAntenna.m 9KB
shadowfading.m 6KB
5.png 10KB
4.png 5KB
poly_EE_lin.m 1017B
lteparset1.m 6KB
channelmodel.m 5KB
LTE_common_pos_to_pixel.m 1KB
2.png 4KB
共 27 条
- 1
资源评论
Matlab领域
- 粉丝: 3w+
- 资源: 3265
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功