%% Generate PUCCH Format 0 Modulation Symbols for Positive SR Transmission
% Specify a transmission without HARQ-ACK and a positive SR.

ack = [];
sr = 1;

% Specify the first symbol index in the PUCCH transmission slot as 11, the number of allocated PUCCH symbols as 2, and the slot number as 63.

symAllocation = [11 2];
nslot = 63;

% Set the scrambling identity to 512 and the initial cyclic shift to 5.

nid = 512;
initialCS = 5;

% Generate the symbols with normal cyclic prefix, intra-slot frequency hopping disabled, and group hopping enabled.

cp = 'normal';
freqHopping = 'disabled';
groupHopping = 'enable';
sym = nrPUCCH0(ack,sr,symAllocation,cp,nslot,nid,groupHopping,initialCS,freqHopping)

% Copyright 2018 The MathWorks, Inc.