%% Decode PDSCH Symbols
% Generate and decode PDSCH symbols.
% Initialize cell parameter structure enb for RMC R.0.

enb = lteRMCDL('R.0');

%
% Populate a complex codeword matrix and generate modulated PDSCH symbols.

codewordBits = randi([0,1],enb.PDSCH.CodedTrBlkSizes(1),1);

pdschSym = ltePDSCH(enb,enb.PDSCH,codewordBits);

%
% Decode and plot the PDSCH symbols.

[rxCodewords,rxSymbols] = ltePDSCHDecode(enb,enb.PDSCH,pdschSym);

plot (rxSymbols{:},'k.')
title('decoded PDSCH symbols')

%
% Show size and first 5 elements of output codewords to be modulated, rxCws, and received symbols, symbols.

size_rxCodewords = size(rxCodewords{:})
rxCodewords{1}(1:1:5)

size_rxSymbols = size(rxSymbols{:})
rxSymbols{1}(1:5)

% Copyright 2012 The MathWorks, Inc.