How do I generate a random bipolar bitstream?
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
consisting of 10bits.
0 Commenti
Risposta accettata
the cyclist
il 23 Mar 2011
I am not 100% sure I understand your question, but the following code will produce a 10-element long vector, in which each element has equal probability of being 0 or 1. Is that what you want?
x = binornd(1,0.5,[1 10])
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Random Number Generation in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!