How can I make a random array with values of either -1 or 1?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Quinlin Hamill
il 24 Ott 2016
Commentato: Quinlin Hamill
il 24 Ott 2016
I'm trying to use randi to make a matrix filled with either -1 or 1 however randi also includes 0s.
0 Commenti
Risposta accettata
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!