%% Generate PUCCH Format 1 Modulation Symbols for One-Bit HARQ-ACK Transmission
% Specify a transmission with one-bit HARQ-ACK and negative SR.

ack = 1;
sr = 0;

% Specify the first symbol index in the PUCCH transmission slot as 3, the number of allocated PUCCH symbols as 9, and the slot number as 7.

symAllocation = [3 9];
nslot = 7;

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

nid = 512;
initialCS = 9;

% Generate the symbols with extended cyclic prefix, intra-slot frequency hopping and group hopping enabled, and orthogonal cover code index 1.

cp = 'extended';
freqHopping = 'enabled';
groupHopping = 'enable';
occi = 1;
sym = nrPUCCH1(ack,sr,symAllocation,cp,nslot, ...
    nid,groupHopping,initialCS,freqHopping,occi)

% Copyright 2018 The MathWorks, Inc.