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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Michael Adelman
on 4 Jan 2013

prob '0' and '1' = 0.5 .

Thanks

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

## 0 Comments