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.

ltePRBS

Pseudorandom binary sequence

Syntax

seq = ltePRBS(cinit,n)
seq = ltePRBS(cinit,n,mapping)

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 with the input mapping.

Examples

collapse all

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

Create cell-wide configuration structure for RMC 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)
prbsSeq =

  5x1 logical array

   0
   0
   0
   0
   0

Generate an unsigned pseudorandom binary sequence.

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

  4x1 logical array

   1
   0
   1
   1

Generate a signed pseudorandom binary sequence.

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

    -1
     1
    -1
    -1

Input Arguments

collapse all

32-bit integer initialization value

Data Types: int32 | uint32 | double

Number of outputs, specified as a positive scalar integer

Data Types: double

Format of returned sequence, specified as 'binary' or 'signed'. mapping controls the format of the returned sequence, seq. 'binary' maps true to 1 and false to 0 and 'signed' maps true to –1 and false to 1.

Data Types: char

Output Arguments

collapse all

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 mapping is set to 'signed', seq is a vector of data type double. Otherwise, it is a vector of data type logical.

Data Types: logical | double

Introduced in R2014a

Was this topic helpful?