%% EPDCCH Search Space
% EPDCCH Search Space for DCI Format 2A and 1.
% For a particular configuration, establish the sizes of DCI messages for format 2A and format 1. Note that for DCI messages conveyed on the EPDCCH, ControlChannelType should be set to 'EPDCCH'.

enb.NDLRB = 50;
enb.CellRefP = 1;
enb.NCellID = 0;
enb.NSubframe = 0;
enb.CFI = 1;
chs.EPDCCHType = 'Localized';
chs.EPDCCHPRBSet = (0:3).';
chs.EPDCCHFormat = 1;
chs.RNTI = 7;
chs.ControlChannelType = 'EPDCCH';

dcisizes = lteDCIInfo(enb,chs);
format2Asize = dcisizes.Format2A
format1size = dcisizes.Format1

%
% Create the EPDCCH search space candidates for a localized EPDCCH transmission of a DCI format 2A message.

chs.DCIFormat = 'Format2A';
[candidates,info] = lteEPDCCHSpace(enb,chs)

%
% Create the candidates for a DCI format 1 message for the same configuration. The DCI format 1 message is smaller than the format 2A message, resulting in a change of case number (info.EPDCCHCase) from 1 to 3. The aggregation level (info.NECCEPerEPDCCH) changes from 4 to 2, resulting in a greater number of candidates.

chs.DCIFormat = 'Format1';
[candidates,info] = lteEPDCCHSpace(enb,chs)

% Copyright 2012 The MathWorks, Inc.