function cw = PDSCHDecode_wrapper(enb, rxgrid, hEst, nEst)
%PDSCHDecode_wrapper Featured example helper function

%   Copyright 2017 The MathWorks, Inc.

    enb.PDSCH.Modulation = cellstr(enb.PDSCH.Modulation)';

    % Get PDSCH indices
     pdschIndices = ltePDSCHIndices(enb, enb.PDSCH, enb.PDSCH.PRBSet);

    % Get PDSCH resource elements from the received subframe. Scale the
    % received subframe by the PDSCH power factor Rho.
    [pdschRx, pdschHest] = lteExtractResources(pdschIndices, rxgrid*(10^(-enb.PDSCH.Rho/20)), hEst);

    cw = cell2mat(ltePDSCHDecode(enb, enb.PDSCH, pdschRx, pdschHest, nEst));


end

