%% Deprecode PUSCH Symbols
% By precoding with an identity matrix, we can gain access to the precoding matrices themselves. The precoded matrix is first generated with codebook index 0 for 4 layers and 4 antennas. The precoded matrix is then deprecoded, resulting in an identity matrix.

    nLayers = 4;
    nAntennas = 4;
    codeBookIdx = 0;
    precodingMatrix = ltePUSCHPrecode(eye(nLayers),nAntennas,codeBookIdx);
    out = ltePUSCHDeprecode(precodingMatrix,nLayers,codeBookIdx)

% Copyright 2012 The MathWorks, Inc.