[PRBS,seed] = prbs(O,N)
calculates a pseudorandom binary sequence and the seed needed to continue the
sequence.
[PRBS,seed] = prbs(O,N,seed)
calculates a pseudorandom binary sequence and the seed needed to continue the sequence using
the seed value.
PRBS = prbs(O,N,seed,reverse)
uses the reverse linear-feedback shift register (LFSR) tap positions and returns a
pseudorandom binary sequence pattern that is essentially the same as running the LFSR
backward in time.
O — Order of pseudorandom binary sequence positive integer scalar
Order of the pseudorandom binary sequence pattern, specified as a positive integer
scalar.
Data Types: double
N — Length of pseudorandom binary sequence positive integer scalar
Length of the pseudorandom binary sequence pattern, specified as a positive integer
scalar.
Data Types: double
reverse — LSFR tap positions used to calculate PRBS pattern vector
The reverse linear-feedback shift register (LFSR) tap positions used to calculate a
pseudorandom binary sequence pattern. The generated pattern is essentially the same as
running the LFSR backward in time.
You can find the LSFR tap positions used by using the command
[~,~,tapPosition]=prbs(O,N).
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.