%% Get PDCCH Indices and Exclude Resources
% Explicitly exclude resources when retrieving PDCCH indices.
% Create a cell-wide configuration structure initialized for RMC R.0. Generate RE indices for the PDCCH providing an empty matrix for the argument exreg so that no resources are excluded.

enb = lteRMCDL('R.0');
ind = ltePDCCHIndices(enb,[],'re');
numPDCCHwithNoExclusion = size(ind)

% All RE indices are returned in the required mapping order.
%
% Explicitly exclude the PCFICH and PHICH indices.

enb = lteRMCDL('R.0');
exreg = [ltePCFICHIndices(enb,'reg'); ltePHICHIndices(enb,'reg')];
ind = ltePDCCHIndices(enb,exreg,'re');
numPDCCHwithExclusion = size(ind)

% This call returns the same result as the default syntax call, ltePDCCHIndices(enb).
% Copyright 2012 The MathWorks, Inc.