%% Generate Column Vector of CSI-RS RE Indices
% Generate a column vector of CSI-RS resource element linear indices for ports 15 to 22 of a 10 MHz downlink subframe 0 resource grid.
% Create a 10 MHz, downlink, subframe 0 configuration parameter structure. Set the number of antenna ports to 8, the CSI-RS configuration to 0, and Icsi-rs to 5.

rmc = lteRMCDL('R.2');
rmc.CSIRefP = 8;
rmc.CSIRSConfig = 0;
rmc.CSIRSPeriod = 5;

%
% The 8 antenna ports are ports 15 to 22. The variable Icsi-rs = 5 is equivalent to a [Tcsi-rs Dcsi-rs] setting of [10 0].

csirs1 = lteCSIRSIndices(rmc);
csirs1(1:5)

% Copyright 2012 The MathWorks, Inc.