Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

ltePUCCH2PRBS

PUCCH format 2 pseudorandom scrambling sequence

Syntax

  • seq = ltePUCCH2PRBS(ue,n)
    example
  • seq = ltePUCCH2PRBS(ue,n,mapping)
    example

Description

example

seq = ltePUCCH2PRBS(ue,n) returns a column vector containing the first n outputs of the Physical Uplink Control Channel (PUCCH) Format 2 scrambling sequence when initialized according to UE-specific settings, ue.

example

seq = ltePUCCH2PRBS(ue,n,mapping) allows control over the format of the returned sequence, seq, with the input mapping.

Examples

collapse all

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.NCellID = 1;
ue.NSubframe = 0;
ue.RNTI = 1;
cw = lteUCIEncode([1;0]);
seq = ltePUCCH2PRBS(ue,length(cw));
size(seq)
ans =

    20     1

Scramble the UCI codeword using the generated scrambling sequence.

scrambled = xor(seq,cw);

Generate unsigned and signed PUCCH format 2 pseudorandom scrambling sequences.

Create user-specific configuration structure.

ue.NCellID = 1;
ue.NSubframe = 0;
ue.RNTI = 1;

Generate a PUCCH format 2 pseudorandom scrambling sequence.

seq = ltePUCCH2PRBS(ue,5)
seq =

  5×1 logical array

   1
   1
   0
   0
   1

Generate a signed PUCCH format 2 pseudorandom scrambling sequence.

seq = ltePUCCH2PRBS(ue,5,'signed')
seq =

    -1
    -1
     1
     1
    -1

Input Arguments

collapse all

UE-specific settings, specified as a structure. ue contains the following fields.

Physical layer cell identity number, specified as a nonnegative scalar integer.

Example: 1

Data Types: double

Subframe number, specified as a nonnegative scalar integer.

Example: 0

Data Types: double

Radio network temporary identifier (16-bit), specified as a scalar integer.

Example: 1

Data Types: double

Length of PUCCH format 2 scrambling sequence, specified as a nonnegative scalar integer.

Example: 10

Data Types: double

Output sequence formatting, specified as 'binary' or 'signed'. mapping controls the format of the returned sequence, seq.

  • 'binary' maps true to 1 and false to 0.

  • 'signed' maps true to –1 and false to 1.

Data Types: char

Output Arguments

collapse all

PUCCH format 2 pseudorandom scrambling sequence, returned as a logical column vector or a numeric column vector. The length of this sequence is given by the input argument, n. If you set mapping to 'signed', the output data type is double. Otherwise, the output data type is logical.

Data Types: logical | double

Introduced in R2014a

Was this topic helpful?