%% Generate NPUSCH RE Indices
% Configure UE-specific settings.

ue = struct('NBULSubcarrierSpacing','15kHz');

% Specify a channel transmission configuration.

chs =  struct('NPUSCHFormat','Data','NBULSubcarrierSet',[0:11],'NRU',1, ...
    'NULSlots',2,'Modulation','BPSK');

% Generate the NPUSCH RE indices for the specified settings. Display the corresponding information.

[ind,info] = lteNPUSCHIndices(ue,chs);
disp(info)

% Copyright 2019 The MathWorks, Inc.