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 = 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 = 4×1 -1 1 -1 -1
cinit— Initialization value
Initialization value, specified as a 32-bit integer.
n— Number of elements in returned sequence
Number of elements in returned sequence,
specified as a numeric scalar.
pn— Range of elements in returned subsequence
Range of elements in returned subsequence,
subseq, specified as a
row vector of
[p n]. The subsequence returns
values of the PRBS generator, starting at position
seq— Pseudorandom binary sequence
subseq— Pseudorandom binary subsequence
Pseudorandom binary subsequence, returned as a logical column vector, or a
numeric column vector.
subseq contains the values of
the PRBS generator specified by
pn. If you set
'signed', the output
data type is
double. Otherwise, the output data type is