%% Generate PSS Indices for FDD Mode
% This example shows how to generate the primary synchronization signal (PSS) indices in subframe 0 using the FDD duplexing mode.
% First, create the cell-wide settings structure.

enb.CyclicPrefix = 'Normal';
enb.NDLRB = 9;
enb.NCellID = 1;
enb.NSubframe = 0;
enb.DuplexMode = 'FDD';

%
% Next, create PSS indices, display size and the first five indices in subframe 0.

ind = ltePSSIndices(enb);
size(ind)
ind(1:5)

%
% If the same call is made for subframe 1 instead, then the result is an empty matrix.

enb.NSubframe = 1;

%
% An empty matrix indicates that the PSS is not present in subframe 1. By calling the functions for indices and values for subframes 0 through to 9 by setting the NSubframe field, the appropriate transmissions across a radio frame can be formed.

ind = ltePSSIndices(enb)

% Copyright 2012 The MathWorks, Inc.