[pattern,seed] = prbs(O,N)
calculates a pseudorandom binary sequence and the seed needed to continue the
sequence.
[pattern,seed] = prbs(O,N,seed)
calculates a pseudorandom binary sequence and the seed needed to continue the sequence using
the seed value.
pattern = 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.
Order of the pseudorandom binary sequence pattern, specified as a positive integer
scalar.
Data Types: double
Length of the pseudorandom binary sequence pattern, specified as a positive integer
scalar.
Data Types: double
Seed value of the pseudorandom binary sequence pattern, specified as a vector. The
function uses the linear-feedback shift register (LFSR) tap positions as seed
value.
Data Types: logical
Determines whether to reverse the LSFR tap positions. If you set
reverse to 1, the function generates a PRBS
pattern that 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.