OFDM.rar


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  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_rece_matlabdata_I_train_word_1_i0_256.txt

     文件       3903  2003-03-14 21:49  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_rece_matlabdata_I_train_word_2_i0_256.txt

     文件       3853  2003-03-16 13:54  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_rece_matlabdata_I_train_word_re_i0_256.txt

     文件       3867  2003-03-14 21:49  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_rece_matlabdata_Q_train_word_1_i0_256.txt

     文件       3908  2003-03-14 21:49  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_rece_matlabdata_Q_train_word_2_i0_256.txt

     文件       3854  2003-03-16 13:54  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_rece_matlabdata_Q_train_word_re_i0_256.txt

     文件     496240  2003-08-02 15:07  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_rece_matlabOFDM_mod_I_ser_2up_sam_50.dat

     文件       3908  2003-08-02 15:07  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_rece_matlabOFDM_mod_original_data_I_ser_2up_sam_50.dat

     文件       3895  2003-08-02 15:07  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_rece_matlabOFDM_mod_original_data_Q_ser_2up_sam_50.dat

     文件     495175  2003-08-02 15:07  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_rece_matlabOFDM_mod_Q_ser_2up_sam_50.dat

     文件      43884  2005-01-22 16:44  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_rece_matlabv06_03_dem_2up_arrange.m

     文件       3870  2004-01-02 14:03  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_send_matlabdata_I_train_word_1_i0_256.txt

     文件       3903  2004-01-02 14:03  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_send_matlabdata_I_train_word_2_i0_256.txt

     文件       3853  2004-01-02 14:03  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_send_matlabdata_I_train_word_re_i0_256.txt

     文件       3867  2004-01-02 14:03  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_send_matlabdata_Q_train_word_1_i0_256.txt

     文件       3908  2004-01-02 14:03  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_send_matlabdata_Q_train_word_2_i0_256.txt

     文件       3854  2004-01-02 14:03  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_send_matlabdata_Q_train_word_re_i0_256.txt

     文件        212  2004-01-02 14:03  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_send_matlabHBF23.txt

     文件       3840  2004-01-02 14:03  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_send_matlabI1.txt

     文件       3840  2004-01-02 14:03  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_send_matlabI2.txt

     文件       3840  2004-01-02 14:03  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_send_matlabI3.txt

     文件       3840  2004-01-02 14:03  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_send_matlabI4.txt

     文件       8936  2005-01-22 18:58  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_send_matlabofdm_mod.m

     文件      92654  2010-01-20 20:49  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_send_matlabSoutI_4_BF.txt

     文件     185308  2010-01-20 20:49  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_send_matlabSoutI_4_IF.txt

     文件      41472  2003-12-29 11:04  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLAB程序流程说明.doc

     文件     127965  2018-11-09 19:28  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLAB.rar

     文件    1795967  2018-11-09 18:36  OFDM程序reference.rar

     目录          0  2018-11-18 13:44  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_rece_matlab

     目录          0  2018-11-18 13:44  OFDMOFDM仿真程序MATLABOFDM完整的仿真程序MATLABOFDM_send_matlab

............此处省略6个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)