%% Index Base
% Generate either zero-based or one-based indices. All mapping operations in the LTE technical specification (TS) documents refer to zero-based indexing. However, MATLAB® indices must be one-based. LTE Toolbox™ generates one-based indices by default, but you can generate zero-based indices by setting the appropriate options string.
% Create a cell-wide setting structure and assign an antenna port number.

enb.NDLRB = 6;
enb.NCellID = 1;
enb.CyclicPrefix = 'Normal';
enb.DuplexMode = 'FDD';

antPort = 0;

%
% Since one-based indexing is the default, you can generate one-based indices by specifying the '1based' flag or leaving it out.

ind = lteCellRSIndices(enb,antPort);
ind = lteCellRSIndices(enb,antPort,'1based');

%
% Generate zero-based indices by specifying the '0based' flag.

ind = lteCellRSIndices(enb,antPort,'0based');

% Copyright 2012 The MathWorks, Inc.