matlab 生成lte信号,【求助】LTE PRS基带信号到射频信号如何做?具体代码如下
rng('default'); % Initialize the random number generator stream
NeNodeB = 5; % Number of eNodeB
% Create eNodeB configurations
enb = cell(1,NeNodeB);
for i=1:NeNodeB
enb{i}=lteRMCDL('R.5'); % Get configuration based on RMC,选R7正好合适。
enb{i}.NCellID = mod((i-1)*2,504); % Set arbitrary cell identity
enb{i}.TotSubframes = 1; % Number of subframes to generate
enb{i}.NPRSRB = 2; % Bandwidth of PRS in resource blocks
enb{i}.IPRS = 0; % PRS configuration index
enb{i}.PRSPeriod = 'On'; % PRS present in all subframes
enb{i}.Position = hPositioningPosition(i-1, NeNodeB); % eNodeB position
end
% Use the first eNodeB configuration for general settings
info = lteOFDMInfo(enb{1});
% Plot Location of eNodeBs and UE
% The positions of the eNodeBs and the UE are plotted for reference. The UE lies at
% (0,0) and the eNodeBs are distributed around the UE.
hPositioningPlotPositions(enb);
% Generate Transmissions
% For each eNodeB, a transmission is made consisting of the PRS, Primary Synchronisation Signal (PSS),
% Secondary Synchronisation Signal (SSS) and Cell-specific Reference Signal (Cell RS).
% An empty resource grid is created and a PRS is generated and mapped onto the grid using ltePRS
% and ltePRSIndices. The PSS, SSS and Cell RS are added in a similar fashion. The resultant grid is
% OFDM modulated to produce a transmit waveform.
tx = cell(1,NeNodeB);
for i = 1:NeNodeB
grid = [];
for nsf = 0:19
enb{i}.NSubframe = mod(nsf,10);
sfgrid = lteDLResourceGrid(enb{i}); % Empty subframe
sfgrid(ltePRSIndices(enb{i})) = ltePRS(enb{i}); % PRS REs
sfgrid(ltePSSIndices(enb{i})) = ltePSS(enb{i}); % PSS REs
sfgrid(lteSSSIndices(enb{i})) = lteSSS(enb{i}); % SSS REs
sfgrid(lteCellRSIndices(enb{i})) = lteCellRS(enb{i}); % Cell RS REs
grid = [grid sfgrid]; %#ok
end
enb{i}.NSubframe = 0;
tx{i} = lteOFDMModulate(enb{i}, grid); % OFDM modulate
end
% Compute delays from eNodeBs to UEs
% Using the known eNodeB positions, the time delay from each eNodeB to the UE is calculated
% using the distance between the UE and eNodeB, radius, and the speed of propagation (speed of light).
% Using knowledge of the sampling rate, info.SamplingRate, the sample delay is calculated and stored in sampleDelay.
% These variables will be used to model the environment between the eNodeBs and the UE but the information will NOT be
% provided to the UE.
speedOfLight = 299792458.0; % Speed of light in m/s
sampleDelay = zeros(1, NeNodeB);
radius = cell(1, NeNodeB);
for i = 1:NeNodeB
[~, radius{i}] = cart2pol(enb{i}.Position(1), enb{i}.Position(2));
delay = radius{i}/speedOfLight; % Delay in seconds
sampleDelay(i) = round(delay*info.SamplingRate); % Delay in samples
end
matlab 生成lte信号,【求助】LTE PRS基带信号到射频信号如何做?具体代码如下相关推荐
- Matlab生成sinc信号
Matlab生成sinc信号 在Matlab中生成sinc信号非常容易.首先,我们需要了解什么是sinc波形. sinc波形是一种理想的信号,它在时域上是一个宽度为无穷的矩形函数,而在频域上则是一个平 ...
- Matlab生成宽带信号
1 简介 Matlab生成宽带信号 2 完整代码 % % FUNCTION 1.2 : "gaosi_bandwidth" % % Evaluates the bandwidth ...
- 用matlab生成跳频信号,用MATLAB实现一种快跳频通信系统
内容简介: 毕业论文 用MATLAB实现一种快跳频通信系统,附答辩文稿.程序与框图.英文资料及翻译,正文共41页,20495字. 摘 要 快跳频通信是扩频通信的一种实现方式,它有很多的特点和有点,尤其 ...
- matlab生成常用信号(方波、三角波、随机信号、单位冲激)
使用Octave在线: 1 方波 y=square(t,DUTY) 产生一个时长为t.幅值为±1的周期性方波信号,其中的DUTY表示占空比,即在信号的一个周期中正值所占的百分比: t=-2*pi/10 ...
- matlab生成exe失败,求助,m文件生成exe遇到的错误
我的版本是2007a,刚试了下,还是不行,下面一堆错误 mcc -o sub_ruanqidong -W main -d D:\ruanqidong\ruanqidong\src -T link:ex ...
- Matlab系列之信号调制
前言 Matlab系列之信号调制 前言 介绍 幅度调制 BASK调制 示例 结果 代码 结果 MASK调制 示例 结果 QAM调制 示例 结果 频率调制 BFSK调制 示例 结果 MFSK调制 示例 ...
- Matlab生成visio可导入的矢量图
目录 一.前言 二.Matlab生成visio可导入的矢量图方法如下: 1.输入代码,生成图片 2.导出 三.emf文件导入visio的步骤 1.打开Visio,创建一个空白绘图 2.点击插入栏下的图 ...
- 利用matlab和SDR实现LTE信号的采集以及帧同步,MIB解码
找到这篇文章的同志们,一定正在LTE生死线上苦苦挣扎,大家都知道对LTE信号进行采集的时候,是采用30.72M(15K✖2048)的时钟频率,然后呢,LTE频带的带宽是18M(15K✖1200)为了避 ...
- matlab 生成信号文件,生成的代码如何存储内部信号、状态和参数数据
浏览模型示例 打开模型示例 rtwdemo_roll. open_system('rtwdemo_roll') 该模型包含不连接到根级别 Inport 或 Outport 模块的内部信号.某些信号具有 ...
最新文章
- [leetcode]27.移除元素
- kafka->Flink->ElasticSearch(Java形式)
- 分页的limit_分页场景(limit,offset)为什么会慢
- android系统手势app,8种iOS手势规定和14种android手势规定详解
- Arthas - Java 线上问题定位处理的终极利器
- java面试排序_Java-四种面试常考排序
- php更新用户数据为空,php - 使用PHP更新数据库,而没有来自HTML表单的空值 - SO中文参考 - www.soinside.com...
- phpboot使用mysql_PHP MySQL 插入数据
- ubuntu:nodejs安装
- 友情链接php源代码_2017最新ThinkPHP开发的友情链接交易系统平台源码
- 如何在revit中管理CAD的图层?
- Day 1:矩阵归零消除序列和
- EMD EEMD CEEMD CEEMDAN IEEMDAN 附赠EEMD代码
- 2020德勤面试开始了吗_曝!玛氏、德勤、携程面试题新鲜出炉!2020第一波面试复盘来了......
- 吃鸡游戏计算机配置,三款畅玩“吃鸡”游戏电脑配置推荐
- SM2算法+开发中注意事项
- windows下编译Sqlite-3.38.0及使用(存储json)
- 2019年3月最新windwows101809教育版激活密钥及其下载地址
- php实现视频转gif,mp4格式如何转换成gif格式
- 免杀远程监控软件大盘点
热门文章
- 某宝买仿互站源码直接整站打包
- 计算机系统结构专业考研科目,计算机系统结构考研考什么
- const verify = ref(null)为什么是null
- 一整套偏方,亲们有对应症状可略为参考
- 良精cms php版漏洞,南方数据、良精系统、网软天下漏洞利用
- 通过CMD命令查询端口占用追查追踪EXE/进程/反电脑木马病毒的方法
- Delphi的原子世界
- 假设银行一年整存零取的月息为1.875%(年息为12*1.875%,年息按复利计算),现在某人手头有一笔钱,他打算在今后5年中,每年年底取出1000元作为来年的教育金,到第5年毕业时刚好取完
- 【洛谷】 P5716 月份天数
- 看《和空姐同居的日子》后小感