How can I make a random array with values of either -1 or 1?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Quinlin Hamill
le 24 Oct 2016
Commenté : Quinlin Hamill
le 24 Oct 2016
I'm trying to use randi to make a matrix filled with either -1 or 1 however randi also includes 0s.
0 commentaires
Réponse acceptée
Voir également
Catégories
En savoir plus sur Random Number Generation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!