Home > WaveComBox > Toolbox > CP_OFDM > ChannelEstimation > OFDM_InsertScattteredPilot.m

OFDM_InsertScattteredPilot

PURPOSE ^

Inserts scattered pilot symbols in the OFDM frame.

SYNOPSIS ^

function d_data_pilot=OFDM_InsertScattteredPilot(d_data,Para)

DESCRIPTION ^

 Inserts scattered pilot symbols in the OFDM frame.

 d_data_pilot=OFDM_InsertScattteredPilot(d_data,Para)

 The function works for SISO systems.

 Input arguments:

   d_data: matrix [Para.nSubcarriers, Ns] containing data symbols. 

   Para: structure containing the modulation parameters.

 Outputs arguments:

   d_data_pilot: matrix [Para.nSubcarriers, Ns] containing data and pilots symbols.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function d_data_pilot=OFDM_InsertScattteredPilot(d_data,Para)
0002 % Inserts scattered pilot symbols in the OFDM frame.
0003 %
0004 % d_data_pilot=OFDM_InsertScattteredPilot(d_data,Para)
0005 %
0006 % The function works for SISO systems.
0007 %
0008 % Input arguments:
0009 %
0010 %   d_data: matrix [Para.nSubcarriers, Ns] containing data symbols.
0011 %
0012 %   Para: structure containing the modulation parameters.
0013 %
0014 % Outputs arguments:
0015 %
0016 %   d_data_pilot: matrix [Para.nSubcarriers, Ns] containing data and pilots symbols.
0017 
0018 
0019 % This file is part of WaveComBox: www.wavecombox.com and is distributed under the terms of the MIT license. See accompanying LICENSE file.
0020 % Original author: François Rottenberg, May 3, 2018.
0021 % Contributors:
0022 % Change log:
0023 
0024 d_data_pilot=d_data;
0025 
0026 if Para.N_T==1
0027     for m=Para.ScatteredPilotSubcarriers
0028         for l=Para.ScatteredPilotSymbols
0029             d_data_pilot(m,l)=sqrt(Para.Ep)*(randi([0 1])*2-1);
0030         end
0031     end
0032 else
0033     error('Function not yet implemented for MIMO')
0034 
0035 end
0036

Generated on Mon 14-Oct-2019 13:48:34 by m2html © 2005