%% Generate PDSCH symbols for Test Model E-TM1.1 10MHz
% Generate the configuration structure for Test Model E-TM1.1 10 MHz, as specified in TS36.141
% Initialize the test model using lteTestModel. Generate information related to PDSCH indices and use info.Gd output to determine the required transport block. Execute lteDLSCH to create the codeword, then generate the PDSCH symbols.

tm = lteTestModel('1.1','10MHz');
tm.PDSCH.RNTI = 0;
tm.PDSCH.RV = 0;

prbset = (0:tm.NDLRB-1)';
[ind,info] = ltePDSCHIndices(tm,tm.PDSCH,prbset);

trBlk  = randi([0,1],info.Gd,1);
cw = lteDLSCH(tm,tm.PDSCH,info.G,trBlk);
pdschSym = ltePDSCH(tm,tm.PDSCH,cw);

% Copyright 2012 The MathWorks, Inc.