%% Estimate Channel Characteristics for PUSCH
% Use lteULChannelEstimate to estimate the channel characteristics for a received resource grid.
% Initialize a UE configuration structure to RMC A3-2. Initialize the channel estimation configuration structure. Generate a transmission waveform. For the purpose of this example, we bypass the channel stage of the system model and copy txWaveform to rxWaveform.

ue = lteRMCUL('A3-2');
ue.TotSubframes = 1;
cec = struct('FreqWindow',7,'TimeWindow',1,'InterpType','cubic');
txWaveform = lteRMCULTool(ue,[1;0;0;1]);
rxWaveform = txWaveform;

%
% Demodulate the SC-FDMA waveform and perform channel estimation operation on rxGrid.

rxGrid = lteSCFDMADemodulate(ue,rxWaveform);
hest = lteULChannelEstimate(ue,ue.PUSCH,cec,rxGrid);

% Copyright 2012 The MathWorks, Inc.