![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172117/image.jpeg)
How to generate a binary sequence in simulink?
16 views (last 30 days)
Show older comments
Michael Adelman
on 4 Jan 2013
Commented: Huy Pham Quoc
on 22 Apr 2020
prob '0' and '1' = 0.5 .
Thanks
0 Comments
Accepted Answer
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172117/image.jpeg)
0 Comments
More Answers (1)
See Also
Categories
Find more on Sources in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!