Documentation

ltePRBS

Pseudorandom binary sequence

Syntax

Description

example

seq = ltePRBS(cinit,n) returns an n-element column vector containing the first n elements of the pseudorandom binary sequence (PRBS) generator when initialized with 32-bit integer, cinit. PRBS sequences are used for scrambling of physical channels for interference mitigation.

example

seq = ltePRBS(cinit,n,mapping) allows control over the format of the returned sequence seq through the string mapping. Valid formats are 'binary' 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 Pseudorandom Binary Sequence

Generate an unsigned pseudorandom binary sequence.

seq = ltePRBS(162,4);
seq(1:4)
     1
     0
     1
     1

Generate Signed Pseudorandom Binary Sequence

Generate a signed pseudorandom binary sequence.

seq = ltePRBS(162,4,'signed');
seq(1:4)
    -1
     1
    -1
    -1

Generate PRBS from Physical Layer Cell Identity

Generate a pseudorandom binary sequence based on physical layer cell identity for RMC R.0.

Create a reference measurement channel (RMC) for configuration R.0. Use the physical layer cell identity, NCellID, as an initial value to generate the pseudorandom binary sequence.

enb = lteRMCDL('R.0');
prbsSeq = ltePRBS(enb.NCellID,5)
     0
     0
     0
     0
     0

Input Arguments

collapse all

cinit — Initialization value32-bit integer

32-bit integer initialization value

Data Types: int32 | uint32 | double

n — Number of outputspositive scalar integer

Number of outputs, specified as a positive scalar integer

Data Types: double

mapping — Format of returned sequence'binary' (default) | 'signed'

Format of returned sequence, specified as a string. This string controls the format of the returned sequence, seq. The string 'binary' maps true to 1 and false to 0. The string 'signed' maps true to –1 and false to 1.

Data Types: char

Output Arguments

collapse all

seq — Pseudorandom binary sequencelogical column vector | numeric column vector

Pseudorandom binary sequence, returned as a logical column vector or a numeric column vector. The vector contains the first n elements of the PRBS generator, when initialized with 32-bit integer cinit. If the sequence is binary, the values are of data type logical. If the sequence is signed, the values are of data type double.

Data Types: logical | double

Introduced in R2014a

Was this topic helpful?