Documentation

ltePUCCH2PRBS

PUCCH format 2 pseudorandom scrambling sequence

Syntax

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

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.

seq = ltePUCCH2PRBS(ue,n,mapping) allows control over the format of the returned sequence, seq, through the mapping string. Valid formats are 'binary', which is the default, and 'signed'. The 'binary' format maps true to 1 and false to 0. The 'signed' format maps true to –1 and false to 1.

Examples

collapse all

Generate PUCCH Format 2 Pseudorandom Scrambling Sequence

This example shows the generation of unsigned and signed PUCCH format 2 pseudorandom scrambling sequences.

Generate a PUCCH format 2 pseudorandom scrambling sequence.

seq = ltePUCCH2PRBS(struct('NCellID',1,'NSubframe', ...
    0,'RNTI',1),5)
seq =

     1
     1
     0
     0
     1

Generate a signed PUCCH format 2 pseudorandom scrambling sequence.

seq = ltePUCCH2PRBS(struct('NCellID',1,'NSubframe', ...
    0,'RNTI',1),5,'signed')
seq =

    -1
    -1
     1
     1
    -1

Input Arguments

collapse all

ue — UE-specific settingsstructure

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

NCellID — Physical layer cell identity numbernonnegative scalar integer

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

Example: 1

Data Types: double

NSubframe — Subframe numbernonnegative scalar integer

Subframe number, specified as a nonnegative scalar integer.

Example: 0

Data Types: double

RNTI — Radio network temporary identifierscalar integer

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

Example: 1

Data Types: double

n — Length of PUCCH format 2 scrambling sequencenonnegative scalar integer

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

Example: 10

Data Types: double

mapping — Control format of the returned sequence'binary' (default) | 'signed'

Control format of the returned sequence, specified as a string. Valid formats are 'binary', which is the default, and 'signed'. The 'binary' format maps true to 1 and false to 0. The 'signed' format maps true to –1 and false to 1.

Data Types: char

Output Arguments

collapse all

seq — PUCCH format 2 pseudorandom scrambling sequencelogical column vector | numeric column vector

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?