Pseudorandom binary sequence
Generate an unsigned pseudorandom binary sequence.
seq = ltePRBS(162,4); seq(1:4)
1 0 1 1
Generate a signed pseudorandom binary sequence.
seq = ltePRBS(162,4,'signed'); seq(1:4)
-1 1 -1 -1
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,
as an initial value to generate the pseudorandom binary sequence.
enb = lteRMCDL('R.0'); prbsSeq = ltePRBS(enb.NCellID,5)
0 0 0 0 0
cinit— Initialization value32-bit integer
32-bit integer initialization value
n— Number of outputspositive scalar integer
Number of outputs, specified as a positive scalar integer
mapping— Format of returned sequence
Format of returned sequence, specified as a string. This string
controls the format of the returned sequence,
'binary' maps true to 1 and false to
0. The string
'signed' maps true to –1 and
false to 1.
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
of the PRBS generator, when initialized with 32-bit integer
If the sequence is binary, the values are of data type logical. If
the sequence is signed, the values are of data type double.