Random secuence {-3,-1,1,3}
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi All, how can I build a random secuence to obtain this values {-3,-1,1,3}?
0 Commenti
Risposte (1)
Rick Rosson
il 22 Ott 2014
Modificato: Rick Rosson
il 22 Ott 2014
x = 2*randi([0 3],100,1) - 3;
0 Commenti
Vedere anche
Categorie
Scopri di più su Random Number Generation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!