%% Generate Zero-Based NPSS RE Indices
% Generate zero-based NPSS RE indices for antenna port 2000.
% Initialize cell-wide settings by specifying the operation mode, number of cell-specific RS antenna ports, physical layer cell identity, and subframe number.

enb.OperationMode = 'Inband-SamePCI';    % Operation mode
enb.CellRefP = 1;                        % Number of cell-specific RS antenna ports
enb.NCellID = 2;                         % Physical layer cell identity
enb.NSubframe = 5;                       % Subframe number

% Specify the antenna port and generate the zero-based NPSS RE indices.

port = 0;
ind = lteNPSSIndices(enb,port,'0based');

% Copyright 2018 The MathWorks, Inc.