[seq,cinit] = ltePUCCH2PRBS(ue,n)
returns the first n outputs of the Physical Uplink Control
Channel (PUCCH) Format 2 scrambling sequence when initialized according to
UE-specific settings, ue. It also returns an initialization
value cinit for the pseudorandom binary sequence (PRBS)
generator.
Scramble the encoded UCI bits representing RI=3 using 2 bits. According to Table 5.2.2.6-6 in TS 36.212 this maps to the set of input bits [1; 0].
Create user-specific configuration structure. Generate a UCI codeword and a pseudorandom scrambling sequence for the PUCCH2 the same length as the codeword.
UE-specific settings, specified as a structure. ue contains
the following fields.
NCellID — Physical layer cell identity number nonnegative scalar integer
Physical layer cell identity number, specified as a nonnegative
scalar integer.
Example: 1
Data Types: double
NSubframe — Subframe number nonnegative scalar integer
Subframe number, specified as a nonnegative scalar integer.
Example: 0
Data Types: double
RNTI — Radio network temporary identifier scalar integer
Radio network temporary identifier (16-bit), specified as a
scalar integer.
Example: 1
Data Types: double
n — Number of elements in returned sequence numeric scalar
Number of elements in returned sequence, seq,
specified as a numeric scalar.
Data Types: double
pn — Range of elements in returned subsequence row vector
Range of elements in returned subsequence, subseq, specified as a
row vector of [p n]. The subsequence returns n
values of the PRBS generator, starting at position p
(0-based).
PUCCH format 2 pseudorandom scrambling sequence, returned as a logical column vector or a
numeric column vector. seq contains the first
n outputs of the scrambling sequence. If you set
mapping to 'signed', the output
data type is double. Otherwise, the output data type is logical.
PUCCH format 2 pseudorandom scrambling subsequence, returned as a logical
column vector or a numeric column vector. subseq
contains the values of the PRBS generator specified by
pn. If you set mapping to
'signed', the output data type is
double. Otherwise, the output data type is
logical.
Data Types: logical | double
cinit — Initialization value for PRBS generator numeric scalar
Initialization value for PRBS generator, returned as a numeric
scalar.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.