%% Estimate Channel Characteristics for PUCCH Format 3
% Use the lteULChannelEstimatePUCCH3 function to estimate channel characteristics for PUCCH Format 3
% Initialize a UE configuration structure, PUCCH settings, and create a resource grid. For the purpose of this example, we bypass the SC-FDMA modulation, channel and SC-FDMA demodulation stages of the system model and copy the txGrid to an rxGrid.

ue = struct('NULRB',6,'NCellID',0,'NSubframe',0,'Hopping','Off');
ue.CyclicPrefixUL = 'Normal';
ue.NTxAnts = 1;
pucch3 = struct('ResourceIdx',0);
txGrid = lteULResourceGrid(ue);
txGrid(ltePUCCH3DRSIndices(ue,pucch3)) = ltePUCCH3DRS(ue,pucch3);
rxGrid = txGrid;

%
% Initialize the channel estimation configuration structure and perform channel estimation operation on rxGrid.

cec = struct('FreqWindow',12,'TimeWindow',1,'InterpType','Cubic');
hest = lteULChannelEstimatePUCCH3(ue,pucch3,cec,rxGrid);

% Copyright 2012 The MathWorks, Inc.