How to generate a binary sequence in simulink?

27 views (last 30 days)
prob '0' and '1' = 0.5 .
Thanks

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 4 Jan 2013
Edited: Azzi Abdelmalek on 4 Jan 2013
Use a random number block from simulink/sources and a compare to Constant block (with value set to <=0.5) from simulink/Logic and Bits operations.
Set mean of random number block to 0.5

More Answers (1)

Michael Adelman
Michael Adelman on 19 Jan 2013
Thank you

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!