%% Demap Codeword for Transmit Diversity
% Map a codeword onto four symbols for 'TxDiversity' transmission scheme. Recover the codeword by demapping the four layers onto one codeword.

nCodewords = 1;
codeword = ones(16,1);
nLayers = 4;
txScheme = 'TxDiversity';

layerMap = lteLayerMap(codeword,nLayers,txScheme);

out = lteLayerDemap(layerMap,nCodewords,txScheme);

% Copyright 2012 The MathWorks, Inc.