📄 test_fre_time_conv.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -