%% Synchronize and SCFDMA Demodulate Delayed Transmission
% Synchronization and demodulation of transmission which has been delayed by 5 samples.
% Initialize waveform and insert a 5 sample delay.

ue = lteRMCUL('A3-2');
waveform = lteRMCULTool(ue,[1;0;0;1]);
tx = [zeros(5,1); waveform];

%
% Determine offset and demodulate the waveform.

offset = lteULFrameOffset(ue,ue.PUSCH,tx)
rxGrid = lteSCFDMADemodulate(ue,tx(1+offset:end));

% Copyright 2012 The MathWorks, Inc.