test_fre_time_conv.m

来自「OFDM的在瑞利信道下的与单载波信号的识别算法」· M 代码 · 共 20 行

M
20
字号

clear all

% Test program for IFFT and FFT %

N_DBPS = 192;
N_SPF = 2;
bits_num = N_DBPS * N_SPF;
rand('state',sum(100*clock));
info_bits = round(rand(1, bits_num));     % Generate the information bites randomly
TX = tx_16qam_mod(info_bits);           % 16-QAM modulation
pilot_sym = pilot_generator(128);               % Generate the pilot symbols, all in BPSK modulation
pilot_num = 1;               % The start number of the cyclic pilot symbols 

tx = tx_fre_to_time(TX,N_SPF,pilot_sym,pilot_num);     % Serial to parallel,Add pilot symbols, IFFT ( Oversampling),Add cyclic prefix 
temp_channel = [ 0.9404 - 0.1552i  -0.0008 - 0.2880i   0.5843 + 0.0222i  -0.0956 - 0.1861i  -0.0685 - 0.0267i];
ry = channel_multipath(tx,temp_channel);
[RY,R_pilot] = ry_time_to_fre(ry,N_SPF,temp_channel);                % Recover the time signal to frequency symbols of each subcarrier
R_pilot = real(R_pilot);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?