Home > WaveComBox > Toolbox > Transmitter > MergePreambleData.m

MergePreambleData

PURPOSE ^

Merges preamble and data symbols.

SYNOPSIS ^

function [ d ] = MergePreambleData(d_preamble,d_data,Para)

DESCRIPTION ^

 Merges preamble and data symbols.

 function [ d ] = MergePreambleData(d_preamble,d_data,Para)

 The function works for SISO and MIMO systems.

 Input arguments:

   d_preamble: symbols in the preamble

   d_data: data symbols

   Para: structure containing the modulation parameters.

 Outputs arguments:

   d: frame constaining preamble and data symbols

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [ d ] = MergePreambleData(d_preamble,d_data,Para)
0002 % Merges preamble and data symbols.
0003 %
0004 % function [ d ] = MergePreambleData(d_preamble,d_data,Para)
0005 %
0006 % The function works for SISO and MIMO systems.
0007 %
0008 % Input arguments:
0009 %
0010 %   d_preamble: symbols in the preamble
0011 %
0012 %   d_data: data symbols
0013 %
0014 %   Para: structure containing the modulation parameters.
0015 %
0016 % Outputs arguments:
0017 %
0018 %   d: frame constaining preamble and data symbols
0019 %
0020 
0021 
0022 % This file is part of WaveComBox: www.wavecombox.com and is distributed under
0023 % the terms of the MIT license. See accompanying LICENSE file.
0024 % Original author: François Rottenberg, May 3, 2018.
0025 % Contributors:
0026 % Change log:
0027 
0028 if Para.S==1
0029     d=[d_preamble d_data];
0030 else    
0031     l_preamble=length(d_preamble(1,1,:));
0032     l_data=length(d_data(1,1,:));
0033     d=zeros(Para.S,Para.nSubcarriers,l_preamble+l_data);
0034     for index_S=1:Para.S
0035         d(index_S,:,:)=[squeeze(d_preamble(index_S,:,:)), squeeze(d_data(index_S,:,:)) ];
0036     end
0037 end
0038 
0039 end
0040

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