%% Generate Cell-Specific Reference Signal RE Indices
% Generate zero-based cell-specific reference signal (CRS) resource element (RE) indices in subscript form for antenna port 2.

enb = lteRMCDL('R.0');
enb.NCellID = 10;
ind = lteCellRSIndices(enb,2,{'0based','sub'});
ind(1:4,:)

% In this case, each row of the generated matrix has three columns, which represent subcarrier, symbol, and antenna port, respectively.
% Copyright 2012 The MathWorks, Inc.