MATLAB Answers

How to generate a binary sequence in simulink?

Asked by Michael Adelman on 4 Jan 2013

prob '0' and '1' = 0.5 .



2 Answers

Answer by Azzi Abdelmalek
on 4 Jan 2013
Edited by Azzi Abdelmalek
on 4 Jan 2013
 Accepted answer

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


Answer by Michael Adelman on 19 Jan 2013

Thank you


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!