Pseudorandom binary sequence
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 = 0 0 0 0 0
Generate an unsigned pseudorandom binary sequence.
seq = ltePRBS(162,4); seq(1:4)
ans = 1 0 1 1
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.
Valid formats are
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.