Pseudorandom binary sequence
seq = ltePRBS(cinit,n)
seq = ltePRBS(cinit,n,mapping)
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 = 5×1 logical array 0 0 0 0 0
Generate an unsigned pseudorandom binary sequence.
seq = ltePRBS(162,4); seq(1:4)
ans = 4×1 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
cinit— Initialization value
32-bit integer initialization value
n— Number of outputs
Number of outputs, specified as a positive scalar integer
mapping— Format of returned sequence
Format of returned sequence, specified as
the format of the returned sequence,
true to 1 and false to 0 and
'signed' maps true
to –1 and false to 1.
seq— Pseudorandom binary sequence
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
mapping is set to
seq is a vector of data type double.
Otherwise, it is a vector of data type logical.