%% Estimate Channel Characteristics for PUCCH Format 1
% Use the lteULChannelEstimatePUCCH1 function to estimate channel characteristics for PUCCH Format 1
% Initialize a UE configuration structure, PUCCH settings, and create a resource grid.

ue = struct('NULRB',6,'NCellID',0,'NSubframe',0,'Hopping','Off');
ue.CyclicPrefixUL = 'Normal';
ue.NTxAnts = 1;
pucch1.ResourceIdx  = 0;
pucch1.DeltaShift   = 1;
pucch1.CyclicShifts = 0;
reGrid = lteULResourceGrid(ue);
reGrid(ltePUCCH1DRSIndices(ue,pucch1)) = ltePUCCH1DRS(ue,pucch1);

%
% For the purpose of this example, we skip SC-FDMA modulation, channel and SC-FDMA demodulation stages of the system model and use reGrid as the received resource grid. Initialize the channel estimation configuration structure and perform channel estimation operation on reGrid.

cec = struct('FreqWindow',12,'TimeWindow',1,'InterpType','Cubic');
hest = lteULChannelEstimatePUCCH1(ue,pucch1,cec,reGrid);

% Copyright 2012 The MathWorks, Inc.