资源简介
OFDM.rar

代码片段和文件信息
% 一个OFDM符号128个有效符号,插入128个虚拟子载波
% 符号率(即有效数据率)fsymbol,而发送速率(需要包括虚拟子载波)2fsymbol
% 输入的数据需要2倍的发送数据率,以便进行内插,实现位定时跟踪,即4倍fsymbol采样率的调制信号
% OFDM symbol Nfft=128 points
% 一个OFDM符号数据点 Nfft*2 = 256 , Guard Interval点 =Ng*2=64
% ------------------------------------------------------------------------------------
close all;
clear;
initializing_now = [‘please wait...‘]
% ------------------------------------------------------------------------------------
% 参数设置
% 系统参数设置
% FFT点数为256,子载波个数为128,虚拟子载波个数为128
Nfft = 128;
Ng = 32;
Ntotal = Nfft+Ng;
M_pilot = 8; % 每个OFDM符号加入的导频数目
Max_symbols = 50;
% 读取训练字
% 短训练字的内容
% 10重复的个短训练字,每个是一个Guard Interval的长度
% 可以看成2个重复的长训练字,每个长训练字是由5个重复的部分组成的
% 这里读入的是这样一个假设的长训练字的频域上的值
% I,Q两路分别读入
fid3=fopen(‘data_I_train_word_re_i0_256.txt‘‘r‘);
I_train_word_re_temp=fscanf(fid3‘%f‘);
fclose(fid3);
I_train_word_re = (I_train_word_re_temp)‘;
fid3=fopen(‘data_Q_train_word_re_i0_256.txt‘‘r‘);
Q_train_word_re_temp=fscanf(fid3‘%f‘);
fclose(fid3);
Q_train_word_re = (Q_train_word_re_temp)‘;
train_word_re = I_train_word_re + j*Q_train_word_re;
% 第一个训练字的内容
% 这里读入的是第一个长训练字的频域上的值
% I,Q两路分别读入
fid3=fopen(‘data_I_train_word_1_i0_256.txt‘‘r‘);
I_train_word_1_temp=fscanf(fid3‘%f‘);
fclose(fid3);
I_train_word_1 = (I_train_word_1_temp)‘;
fid3=fopen(‘data_Q_train_word_1_i0_256.txt‘‘r‘);
Q_train_word_1_temp=fscanf(fid3‘%f‘);
fclose(fid3);
Q_train_word_1 = (Q_train_word_1_temp)‘;
train_word_1 = I_train_word_1 + j*Q_train_word_1;
% 第二个训练字的内容
% 这里读入的是第二个长训练字的频域上的值
% I,Q两路分别读入
fid3=fopen(‘data_I_train_word_2_i0_256.txt‘‘r‘);
I_train_word_2_temp=fscanf(fid3‘%f‘);
fclose(fid3);
I_train_word_2 = (I_train_word_2_temp)‘;
fid3=fopen(‘data_Q_train_word_2_i0_256.txt‘‘r‘);
Q_train_word_2_temp=fscanf(fid3‘%f‘);
fclose(fid3);
Q_train_word_2 = (Q_train_word_2_temp)‘;
train_word_2 = I_train_word_2 + j*Q_train_word_2;
% 第二个长训练字与第一个长训练字对应子载波位置上的值的比值
% 用于整数倍频偏估计,具体算法参考Schmidl和Cox的文章
% “Robust Frequency and Timing Synchronization for OFDM“
for temp_i=1:1:Nfft/2
if(rem(temp_i2)==1)
vv(temp_i)=sqrt(2)*train_word_2(temp_i)/train_word_1(temp_i);
end
end
% 缓冲区参数设置
% 采用两个缓冲区,当对一个缓冲区里的数据进行处理的时候,对另一个缓冲区进行数据写入
% 同一个缓冲区不同时进行读和写的操作
% 软件仿真这一个过程跟实际过程中的一个极端情况,可以应用于实际情况
MI_IN_1(1:Ntotal*2*8) = 0;
MQ_IN_1(1:Ntotal*2*8) = 0;
MI_IN_2(1:Ntotal*2*8) = 0;
MQ_IN_2(1:Ntotal*2*8) = 0; % 直接从已经准备好的文件里读出来的数据的存储空间
% 此时是完全理想的数据,没有加任何噪声以及偏移量
% I、Q是区分I、Q两路信号
% 1、2是区分两个交替使用的缓冲区
I_INnoised_1(1:Ntotal*2*8) = 0;
Q_INnoised_1(1:Ntotal*2*8) = 0;
I_INnoised_2(1:Ntotal*2*8) = 0;
Q_INnoised_2(1:Ntotal*2*8) = 0; % 加过高斯白噪声后的数据的存储空间
% I、Q是区分I、Q两路信号
% 1、2是区分两个交替使用的缓冲区
I_INnoised_error_f_1(1:Ntotal*2*8) = 0;
Q_INnoised_error_f_1(1:Ntotal*2*8) = 0;
I_INnoised_error_f_2(1:Ntotal*2*8) = 0;
Q_INnoised_error_f_2(1:Ntotal*2*8) = 0; %
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3870 2003-03-14 21:49 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_rece_matlab\data_I_train_word_1_i0_256.txt
文件 3903 2003-03-14 21:49 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_rece_matlab\data_I_train_word_2_i0_256.txt
文件 3853 2003-03-16 13:54 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_rece_matlab\data_I_train_word_re_i0_256.txt
文件 3867 2003-03-14 21:49 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_rece_matlab\data_Q_train_word_1_i0_256.txt
文件 3908 2003-03-14 21:49 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_rece_matlab\data_Q_train_word_2_i0_256.txt
文件 3854 2003-03-16 13:54 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_rece_matlab\data_Q_train_word_re_i0_256.txt
文件 496240 2003-08-02 15:07 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_rece_matlab\OFDM_mod_I_ser_2up_sam_50.dat
文件 3908 2003-08-02 15:07 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_rece_matlab\OFDM_mod_original_data_I_ser_2up_sam_50.dat
文件 3895 2003-08-02 15:07 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_rece_matlab\OFDM_mod_original_data_Q_ser_2up_sam_50.dat
文件 495175 2003-08-02 15:07 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_rece_matlab\OFDM_mod_Q_ser_2up_sam_50.dat
文件 43884 2005-01-22 16:44 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_rece_matlab\v06_03_dem_2up_arrange.m
文件 3870 2004-01-02 14:03 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_send_matlab\data_I_train_word_1_i0_256.txt
文件 3903 2004-01-02 14:03 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_send_matlab\data_I_train_word_2_i0_256.txt
文件 3853 2004-01-02 14:03 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_send_matlab\data_I_train_word_re_i0_256.txt
文件 3867 2004-01-02 14:03 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_send_matlab\data_Q_train_word_1_i0_256.txt
文件 3908 2004-01-02 14:03 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_send_matlab\data_Q_train_word_2_i0_256.txt
文件 3854 2004-01-02 14:03 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_send_matlab\data_Q_train_word_re_i0_256.txt
文件 212 2004-01-02 14:03 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_send_matlab\HBF23.txt
文件 3840 2004-01-02 14:03 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_send_matlab\I1.txt
文件 3840 2004-01-02 14:03 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_send_matlab\I2.txt
文件 3840 2004-01-02 14:03 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_send_matlab\I3.txt
文件 3840 2004-01-02 14:03 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_send_matlab\I4.txt
文件 8936 2005-01-22 18:58 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_send_matlab\ofdm_mod.m
文件 92654 2010-01-20 20:49 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_send_matlab\SoutI_4_BF.txt
文件 185308 2010-01-20 20:49 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_send_matlab\SoutI_4_IF.txt
文件 41472 2003-12-29 11:04 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\程序流程说明.doc
文件 127965 2018-11-09 19:28 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB.rar
文件 1795967 2018-11-09 18:36 OFDM\程序reference.rar
目录 0 2018-11-18 13:44 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_rece_matlab
目录 0 2018-11-18 13:44 OFDM\OFDM仿真程序MATLAB\OFDM完整的仿真程序MATLAB\OFDM_send_matlab
............此处省略6个文件信息
相关资源
- PID_AutoTune_v0.rar
- vspd7.2.308.zip
- 价值2k的H漫画小说系统
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- ddos压力测试工具99657
- UML建模大全
- 开源1A锂电池充电板TP4056原理图+PCB
- m1卡 ic卡可选择扇区初始化加密软件
- TSCC.exe
- FTP课程设计(服务端+客户端)
- 计算机图形学 边填充算法实现代码
- 电力系统潮流计算程序集合
- oracle数据迁移项目实施方案
- Web Api 通过文件流 文件到本地
- Visio图标-最新最全的网络通信图标库
- Spire API文档
- OpenGL参考手册
- Python中Numpy库最新教程
- SPD博士V5.3.exe
- 直流无刷电机方波驱动 stm32 例程代码
- layui后台管理模板
- 仿知乎界面小程序源代码
- 云平台-阿里云详细介绍
- photoshop经典1000例
- scratch垃圾分类源码(最终版本).sb
- IAR ARM 7.8破解
- TI CCS V5.4 安装步骤及破解文件
- 松下plc FP-XH的驱动
- 局域网硬件信息收集工具
- 加快Windows XP操作系统开机速度
评论
共有 条评论