了解 MATLAB 中深度学习 NOMA 系统的代码
我正在努力理解这段关于基于 MATLAB 的基于深度学习的 NOMA 系统的代码。我对 MATLAB 编码非常陌生,但我确实需要理解整个代码,因为它将对我的学校项目有所帮助,而我正在努力。
我认为现在我不需要知道数学公式是如何工作的,而是关注代码正在做什么及其流程。
这是我现在正在努力解决的 trainData.m 文件中的代码的一部分
- 为什么导频符号是计算出来然后立即替换的吗?
- 为什么选择idx_sc(20)进行替换呢?其意义何在?它是为 DL 模型训练选择的唯一子载波吗?为什么只有这样?
- 图中这部分代码被标记为“为每个类生成训练数据”。根据我的理解,它是为每个标签生成 OFDM 数据包,模拟传输和接收,然后获取 16 个类别中每个类别的特征和标签。这是正确的吗?
代码和所有相关函数文件可以在下面的链接中找到。
请帮我理解代码!!!请!非常感谢!
I'm trying very hard to understand this code about a Deep Learning-Based NOMA system based in MATLAB. I am really new to MATLAB coding but I really need to understand this entire code as it will help in my school project and I am struggling.
I think as of right now I do not need to know how the mathematical formulas work, but instead, the focus is on what the code is doing and its flow.
This is part of the code in the trainData.m file that I am struggling with right now
- Why are the pilot symbols calculated and then replaced right after?
- Why is the idx_sc (20) selected to be replaced? What is its significance? Is it the only subcarrier selected for the training of the DL model? Why only that?
- This portion of the code in the picture is labeled "generate training data for each class". From my understanding, it is generating OFDM packets for each label, simulating the transmission and reception, and then getting the features and labels for each of the 16 classes. Is that correct?
The code and all relevant function files can be found in the link below.
Please help me understand the code!!! Please! Much thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,在第 91 行中,代码将整个变量初始化为 0。后续行 (92-96) 只是根据“(...)”内的索引替换变量的各个部分。
To get you started, In lines 91 the code initializes the entire variable as 0. Subsequent lines (92-96) are just replacing pieces of the variable based on the indexing inside the “(…)”